If / else if / else


#1

var isEven = function(number) {
if(number%2===0){
return "true";
}
else if(isNaN(number)){
return "another string";
}
else{
return "false";
}
};
var number = prompt("Type a number!");
isEven(number);


#2

what's wrong with the code


#3

true and false are boolean's

Putting quotation marks " " around them turns it into a string.

JavaScript glossary by Codecademy