More On Control Flow in JS


#1

I'm sorry, but I don't know what my code is wrong. The function returned the right answer, and 3 is definitely not returning true is this case.


#2

else if (isNaN(number) === true)

should just be:

else if (isNaN(number))

#3

I tried that too, but it doesn't change the response the site gives me. I even put is isEven(3) to prove that it doesn't return a true. I don't know what to do when my function is correct but the site says it isn't.