Code not working correctly?


Says "Oops, try again. Looks like your function returns false when number = 2. Check whether your code inside the if/else statement correctly returns true if the number it receives is even."

var isEven = function(number) {
  // Your code goes here!
if(number % 2)
    return true;
    return false;


if the remainder of number divided by 2 equals zero, return true

You don't check the equal zero bit


ohhhh ok. Thanks for the help!