Oops, try again. Your function returns true for 3!


#1

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


#2

@etuc2020,
Instead of your condition

number===strings

you should be using
the isNaN() Method
Have a read
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/isNaN