If/else if/ else help!


#1


Error: Your function returns true for 3

var isEven = function(number) {
  if( number % 2 === 0) {
      return true
  }
  else if( isNaN('number')) {
      return "This isn't a number dummy!!"
  }
  else { 
      return false
  }
};
isEven(2)


#2

here:

else if( isNaN('number'))

number is a string, are you sure this is right?


#3

It had it as one in the example, and it worked before. But when I did change it, it solved the problem, thanks!


#4