If else if


#1

var isEven = function(number) {
    
if (number %2 === 0) {
    return true;
}
else if (isNaN(number)) {
    return "your input is invalid";
}
else {
    return false;
}
};
isEven("Nope");

#2

Is there something wrong with this? To make any use of this we need a little more information.