2/9. Need help with syntax


#1

The script below is my script as it stands right now. Whenever I go to submit the function it continually recieves a syntax error but it doesn't say what is incorrect, and I can find it. If you could please help me identify and correct the error it would be greatly appreciated.

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

isEven (3)


#2

What's this for? I do not know what it is for, for it isn't in the directions.:neutral_face:

Anyways, everything seems fine, except you can delete that.


#3

No semicolons after conditions:

if (number%2===0);

here is a link that should explain the problem with doing so.