More on Control Flow


#1

Can someone help it says syntax error

var isEven = function(number) {
if(number%2===0){return true;}

else if(isNaN (number)){return number "is not number";}

else {return false;}
};
isEven();

`


#2

this line

else if(isNaN (number)){return number "is not number";}

you should add teh + between number and the string then here

isEven();

you should put a number in the call function


#3

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