Dont know why the return does not work in line 34

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

var names = ["Hole-in-one!", "Eagle", "Birdie", "Par", "Bogey", "Double Bogey", "Go Home!"];
function golfScore(par, strokes) {
// Only change code below this line
if (par==4,strokes==1)
{
return "Hole-in-one!";
}
else if (par==1,strokes==1)
{
return "Hole-in-One!";
}
else if(par==4 || par==5,strokes==2)
{
return "Eagle";
}
else if(par==4,strokes==3)
{
return "Birdie";
}
else if (par==5,strokes==5)
{
return "Par";
}
else if(par==5, strokes==5)
{
return "Par";
}
else if (par==4,strokes==4)
{
return "Par";
}
else if(par==4,strokes==5)
{
return "Bogey";
}
else if (par==4,strokes==6)
{
return "Double Bogey";
}
else if (par>=4,strokes>=7)
{
return "Go Home!"
}


return "Change Me";
// Only change code above this line
}

golfScore(5, 4);
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36

Challenge: Golf Code

Link to the challenge:

What do you want this to do? This is not valid syntax.

thank you ill correct it

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.