Hello All. I’ve been stuck on this all day now and it really has me stumped. Any help is appreciated so that I understand what I am doing incorrectly.
After the script for Birdie is where the mistakes are. All is good before return birdie.
function golfScore(par, strokes) {
// Only change code below this line
if (strokes == 1) {
return ("Hole-in-one!");
} else if (strokes <= par -2) {
return ("Eagle");
} else if (par - 1) {
return ("Birdie");
} else if (strokes === par) {
return ("Par");
} else if (strokes >= (par + 1)) {
return ("Bogey");
} else if (strokes >= (par + 2)) {
return ("Double Bogey");
} else if (strokes >= (par + 3)) {
return ("Go Home!");
}
Thanks!