isNan function


Who does this not work?

var isEven = function(number) {
if (number%2 === 0)
return true;
else if (isNan(number))
return "Ain't a number.";
else {
return false;


change "isNan" to "isNaN" capitalize the second N.. It matters :smile: Also after your function I believe the exercise wishes you to call the "isEven" function with any parameter. It's not necessary to pass the lesson, but I would do so just for fun!


thanks! i am the best at these small spell errors.