If/Else if /Else


#1

Continuing the discussion from If/ Else if/ Else:

Hi I really don't know what is wrong with this. I keep getting this "ReferenceError: isNan is not defined"

this is my code:

var isEven = function(number) {

if(number % 2 === 0){
return true;
} else if (isNan(number)) {
return "This is not a number.Please try again.";
} else {
return false;
}
};


#2

Hi you wrote isNan instead of isNaN


#3

oH God! Thank you so much! I spent ages here.