If / else if / else


//can anyone plz tell me whats wrong with this code.

var isEven = function(number)
return true
else if (isNaN(isEven))
return "not a number"
return false



The goal here is to check if the the argument(i.e."number") passed is an actual number and nothing else. so you must rather pass "number'' to isNaN() instead.

Also since you are returning your values(which are boolean) the compiler will throw a boolean will give a value back to you the caller but then you want to capture the value an print it on the console to see the result, hence you will have to pass this
call isEven(3) to console.log()


thanx for the feedback