Function return true for 3 error


#1

var isEven = function(number) {
if (isEven % 2 === 0) {
return true}
else if (isNaN(isEven)) {
return "Incorrect value"
}
else {
return false}
}
isEven(8);

Help


#2

Use your parameter variable in the conditional:

    if (number % 2 === 0) {

    } else if (isNaN(number)) {

    } else {

    }

#3

God bless @mtf. corrected, passed and learnt