Need help


#1

var isEven = function(number) {
if(isNaN(isEven));
return "strings are not allowed";
}else if(isEven%2 === 0){
return true;
}else{
return false;
}
};
isEven("james bond");


#2

In your FUNCTION-BODY you will have to change all isEven in number
as number being a parameter is used as a local variable.throughout this FUNCTION-BODY.