diff --git a/challenges/01-front-end-development-certification/basic-javascript.json b/challenges/01-front-end-development-certification/basic-javascript.json index ea7a6b36f5..cf8f6994cd 100644 --- a/challenges/01-front-end-development-certification/basic-javascript.json +++ b/challenges/01-front-end-development-certification/basic-javascript.json @@ -2808,8 +2808,8 @@ "id": "5664820f61c48e80c9fa476c", "title": "Golf Code", "description": [ - "In the game of golf each hole has a par for the average number of strokes needed to sink the ball. Depending on how far above or below par your stokes are, there is a different nickname.", - "Your function will be passed a par and strokes. Return strings according to this table:", + "In the game of golf each hole has a par for the average number of strokes needed to sink the ball. Depending on how far above or below par your stokes are, there is a different nickname.", + "Your function will be passed a par and strokes. Return strings according to this table (based on order of priority - top (highest) to bottom (lowest)):", "
StokesReturn
1\"Hole-in-one!\"
<= par - 2\"Eagle\"
par - 1\"Birdie\"
par\"Par\"
par + 1\"Bogey\"
par + 2\"Double Bogey\"
>= par + 3\"Go Home!\"
", "par and strokes will always be numeric and positive." ], @@ -2820,6 +2820,7 @@ "assert(golfScore(5, 2) === \"Eagle\", 'message: golfScore(4, 2) should return \"Eagle\"');", "assert(golfScore(4, 3) === \"Birdie\", 'message: golfScore(4, 3) should return \"Birdie\"');", "assert(golfScore(4, 4) === \"Par\", 'message: golfScore(4, 4) should return \"Par\"');", + "assert(golfScore(1, 1) === \"Hole-in-one!\", 'message: golfScore(1, 1) should return \"Hole-in-one!\"');", "assert(golfScore(5, 5) === \"Par\", 'message: golfScore(5, 5) should return \"Par\"');", "assert(golfScore(4, 5) === \"Bogey\", 'message: golfScore(4, 5) should return \"Bogey\"');", "assert(golfScore(4, 6) === \"Double Bogey\", 'message: golfScore(4, 6) should return \"Double Bogey\"');", @@ -2829,7 +2830,7 @@ "challengeSeed": [ "function golfScore(par, strokes) {", " // Only change code below this line", - "", + " ", " ", " return \"Change Me\";", " // Only change code above this line",