2/14 Reference Error


#1

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

isEven(s)

After running that I always get : ReferenceError: s is not defined


#2

That is because s is not defined. If your intention is to send a letter, then,

isEven('s');     // This is not a number