Tell us what’s happening:
Hey, I’d like to know what the “par” thing represents in the golf game? Isnt it enough to just build something with if (strokes …) , leaving the “par” term completly out or am i missing something?
Your code so far
function golfScore(par, strokes) {
// Only change code below this line
if (strokes)
return "Change Me";
// Only change code above this line
}
// Change these values to test
golfScore(5, 4);
Your browser information:
Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0
.
Link to the challenge: