What is worng?


#1


var isEven = function(number)
{
if (isNaN(number)===true)
{
return "this is not a number"
}
else
{
if(number%2===0)
{
return "yes"
}
else
{
return "no"
}
}

}

isEven (12);
i keep getting " Oops, try again. It looks like you didn't include your else if() branch. "


Replace this line with your code.


#2

look at the last }


#3

sorry i do not understand.
the code work fine.
i keep getting the result i want.

but also....." Oops, try again. It looks like you didn't include your else if() branch. "


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.