Tell us what’s happening:
Describe your issue in detail here.
i dont understand what this exercise is asking non of the other tutorials ive went through have code that is similar to this one. i dont know what to ask when doing in internet search. can anyone explain this to me like im a third grader?
**Your code so far**
const names = ["Hole-in-one!", "Eagle", "Birdie", "Par", "Bogey", "Double Bogey", "Go Home!"];
function golfScore(par, strokes) {
// Only change code below this line
if( 4 < 1){
return "Hole in one!"
}
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/105.0.0.0 Safari/537.36 Edg/105.0.1343.33
You got the basic look of it. You are supposed to compare strokes and par though. You returns are all right. Remember == means something matches whatever parameters. Such as:
Hi. Here’s my own solution. You might find it useful, or not. However, I like it because it combines a bit of everything from the previous lessons, which is a good way to solidify the concepts learned.
It’s nice that you have solved the challenge, but the forum aims to help people deduct ways to solve their challenge, we are against outright showing solutions.