Get help on our basic JavaScript and Algorithms Challenges. If you are posting code that is large use Gist - https://gist.github.com/ paste the link here.
thecodingaviator on master
remove A (#31157) (compare)
You will need to use escape sequences to insert special characters correctly. You will also need to follow the spacing as it looks above, with no spaces between escape sequences or words.
Here is the text with the escape sequences written out.
FirstLinenewlinebackslashSecondLinebackslashcarriage-returnThirdLine
var myStr;"FirstLine\n\SecondLine\\rThirdLine"
:warning: johnnyosullivan already gave moigithub points
function golfScore(par, strokes) {
// Only change code below this line
if (par > 1) {
return "Hole-in-one";
} else if (par <= -2) {
return "Eagle";
} else if (par <= -1) {
return "Birdie";
} else if (par >= 1) {
return "Par";
} else if (par >= 1) {
return "Bogey";
} else if (par >= 2) {
return "Double Bogey";
} else if (par >= 3) {
return "Go Home!";
}
else {
return "Change Me";
}
// Only change code above this line
}
// Change these values to test
golfScore(5, 4);