isNaN question - please help


This is my code:

var isEven = function(number) {
  // Your code goes here!
  if(number%2===0) {
      return true;
  else if(isNaN(number)) {
      return "not a number";
  else {
      return false;

And this is the message it sends:
"Oops, try again. Make sure your if/else if/else statement returns a string when the function input isn't a number."

I think I did some mistake but where? I can't see... Help me plz!


I can't find a mistake and I can pass the exercise using your code. Maybe refreshing the page will already solve the problem.


I tried it again after a refresh and now it works properly. Don't know what was the problem but thanks for your help :smile: