1/14 Looks like your function returns false when number = 2


I don't know why my code isn't working:
var isEven = function(number) {
// Your code goes here!
if (number % 2) {
return true;
else {
return false;


you didn't mention what number % 2 should be equal to in order to be an even number in this case which is equals to zero.


Yes that is a real problem here because the possible answers are 0 even and 1 odd. And as you might know (or googled) 1 has a value of true and 0 of false, therefore you get the opposite of what you'd expect when using this expression.