Golf Code not passingj

Tell us what’s happening:
I’m getting "Go Home with (4, 7) and (5, 9) plugged into golfScore ( ) but still won’t pass. Can someone eval my code and tell me what i’m missing please?

Your code so far

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(strokes == 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";
    
  }else
  
  
  return "Change Me";
  // Only change code above this line
}

// Change these values to test
golfScore(5, 9);

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (X11; CrOS x86_64 9592.85.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.112 Safari/537.36.

Link to the challenge:

You just had a bit of typo :wink:. 'Go Home' should be 'Go Home!'

1 Like

Thanks a lot man. I ended up seeing that after a bit. Cheers