It keeps giving me a reference error


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){
return true;
else if(isNaN(number)=false){
return “Please input a valid number”;
return false;

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


hi this part

else if(isNaN(number)=false)

just remove the =false


Thanks wizmarco
That worked.