Keeps replying isNan function undefined


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;
      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


Check your spelling. isNaN().


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


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