hey everyone!
sorry if this is a stupid question. but why does “console.log(golfScore(5, 4))” equal to Birdie?
hey everyone!
sorry if this is a stupid question. but why does “console.log(golfScore(5, 4))” equal to Birdie?
Because the chart says it has to be that way. a result of strokes === par - 1
is a ‘Birdie’ for this ’ exercise.
the first number is the par
, the second the strokes
So par is equal to 5, and strokes to 4
so strokes is equal to par - 1, and looking at the table, when strokes is equal to par - 1, you need to return Birdie
wooooow duhhhh lol thanks much
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.