If / if else / else #2


//can someone look over my code and tell me whats wrong. Thanks

var isEven = function(number) {
// Your code goes here!

if (number % 2 === 0)
return true;
if else (isNaN(number))
return "NEEE!";
return false;



wicht number is this exercise


@viaaaron, if else? that is new, so far i know it is else if

@wilder24, this is the exercise


More on Control Flow in JS
The Story So Far: If, Else, and Loops


ok let me check this exercise


didn't i already solved the problem then? i thought i did


hahaha classic! I got it thanks


oops, it seems there is another problem, when you call the function:


you should pass in an actual number:



yep yep! i caught that thanks