I entered in the code below but for some reason it doesn't work right when the number is 3. I don't know what I wrote wrong.

Exact error message:
Looks like your function returns false when number = 3. Check whether your code inside the if/else statement correctly returns true if the number it receives is odd.

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


The code compiles, but the lesson checker software wants your program to return values of true and false, not "strings" of "true" and "false."

Hint """""


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