freecodecamp Golf Code
<p>I am trying to solve Golf Code challenge in freecodecamp and I can't really figure out what is wrong with my code
here is the direct <a href="https://www.freecodecamp.com/challenges/golf-code#?solution=function%20golfScore(par%2C%20strokes)%20%7B%0A%20%20%2F%2F%20Only%20change%20code%20below%20this%20line%0A%20%20if(strokes%20%3D%3D%201)%20return%20%22Hole-in-one!%22%3B%0A%20%20else%20if(strokes%20%3C%3D%20par%20-2)%20return%20%22Eagle%22%3B%0A%20%20else%20if(strokes%20%3D%3D%3D%20par%20-1)%20return%20%22Birdie%22%3B%0A%20%20else%20if(strokes%20%3D%3D%3D%20par)%20return%20%22Par%22%3B%0A%20%20else%20if(strokes%20%3D%3D%3D%20par%20%2B%201)%20return%20%22Bogey%22%3B%0A%20%20else%20if(strokes%20%3D%3D%3D%20par%20%2B%202)%20return%20%22Double%20Bogey%22%3B%0A%20%20else%20if(strokes%20%3E%3D%20par%20%2B%203)%20return%20%22Go%20Home%22%3B%0A%20%20%0A%20%20return%20%22Change%20Me%22%3B%0A%20%20%2F%2F%20Only%20change%20code%20above%20this%20line%0A%7D%0A%0A%2F%2F%20Change%20these%20values%20to%20test%0AgolfScore(5%2C%204)%3B%0A" rel="nofollow noreferrer">link</a>. Link contains the code I am trying to run, just visit the link.</p>

<p><strong>My JS:</strong> </p>

<pre><code>function golfScore(par, strokes) {
    if(strokes == 1) return "Hole-in-one!";
    else if(strokes &lt;= 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 &gt;= par + 3) return "Go Home";

return "Change Me";
}
golfScore(5, 4);
</code></pre>

<p><strong>Requirement:</strong></p>

<p>In the game of golf each hole has a par meaning the average number of strokes a golfer is expected to make in order to sink the ball in a hole to complete the play. Depending on how far above or below par your strokes are, there is a different nickname.</p>

<p>Your function will be passed par and strokes arguments. Return the correct string according to this table which lists the strokes in order of priority; top (highest) to bottom (lowest):</p>

<p>Strokes Return:</p>

<pre><code>1                  "Hole-in-one!"
&lt;= par - 2         "Eagle"
par - 1            "Birdie"
par                "Par"
par + 1            "Bogey"
par + 2            "Double Bogey"
&gt;= par + 3         "Go Home!"
</code></pre>

<p>Thanks for help in Advance.</p>