Code not working correctly?


#1


https://www.codecademy.com/courses/javascript-beginner-en-qDwp0/0/1?curriculum_id=506324b3a7dffd00020bf661#


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;
}
else
{
    return false;
}
};


#2

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

You don't check the equal zero bit


#3

ohhhh ok. Thanks for the help!


#4