ReferenceError in my code for isNaN


#1

This is my code. I don't know what is wrong with it!

`var isEven = function(number) {
if (number % 2 === 0) {
return true;
}
else if (isNaN(number)) {
return "Please enter a valid number";
}
else {
return false;
}

};

isEven(hi)`


#2

Solved! Thank you everyone...