Something is wrong with this part of the lesson


#1


3%2 = 1..... can someone fix this so I can move on? or am I doing something wrong and cant see it?


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


#2

True and false are booleans. They're either 1 or 0.

What you are trying to return are strings.

true = boolean
"true" = string


#3

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