It keeps giving me a reference error


#1

The code it asks to write is about finding an even number. It's number 2. if/else if/else
The code I put in is:
var isEven = function(number){
if(number%2===0){
return true;
}
else if(isNaN(number)=false){
return "Please input a valid number";
}
else{
return false;
};
};
isEven(2)

It keeps giving me a reference error, saying that I deleted the variable "isEven", but it's right there.


#2

hi this part

else if(isNaN(number)=false)

just remove the =false


#3

Thanks wizmarco
That worked.