Keeps replying isNan function undefined


#1

https://www.codecademy.com/en/courses/javascript-beginner-en-qDwp0/0/2?curriculum_id=506324b3a7dffd00020bf661


isNan is undefined


Replace this line with your code. 
var isEven = function(number)
{
 if (isNan(number))
{
      return ("your input is not a number");
    } 
else if (number % 2 === 0)
  {
      return true;
  }
 else
  {
      return false;
  }
};


can anybody help me out how to make this work. I tried all the threads that people have written on this topic but I keep on getting this error message


#2

Check your spelling. isNaN().


#3

Thank you so much! It works. I have been at it for so long :smile:


#4

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