Help with if/else if exercise


#1

<Below this line, add a link to the EXACT exercise that you are stuck at.
https://www.codecademy.com/courses/javascript-beginner-en-qDwp0/0/2?curriculum_id=506324b3a7dffd00020bf661#

ReferenceError: isNan is not defined


var isEven = function(number) {
  // Your code goes here!
  if(number % 2 === 0)
   return true;
   else if(isNan(number))
   {
       return "input is not valid";
       }
   else
   {
       return false;
       }
};
isEven(7);


#3

isNaN, both n's should be uppercase


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.