The key is in the if, i tried to do this and get a bit confussed because i don’t know nothing about golf but the table in the instructions are saying you all you nee to know. In this case you overthink with
((strokes - par) <= -2)
What they want is: strokes are minus or equal that (par-2)?
There are a number of reasons why this challenge doesn’t pass:
you can’t use a single = as a comparison operator. To test for equality you use == or for strict equality ===.
Your function is incomplete as you have not accounted for all possible outcomes.
Your strokes minus par comparison is a little confusing and shouldn’t be a <= comparison (should be ==). Simpler would be to subtract strokes from par and check if it equals 2.
If you pass par 5 and strokes 4 to the function it’s not an eagle. It’s a birdie.