1. If / else?


#1


Ok, this is like the most basic exercise ever but I don't know what's wrong



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


#2

Did you call the isEven() function?


#3

a number is even when number % 2 equals zero.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.