If/Else if /Else


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;


Hi you wrote isNan instead of isNaN


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