I cannot see what is wrong here


#1


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


not sure what I did wrong


Replace this line with your code. 
var isEven = function(number) {
  // Your code goes here!
  if ( number % 2 ) {
      return "true";
  }
  else {
        return "false";
  }
};


#2

The above is a string. Instead, return a boolean primitive, true or false.

This will be true for odd numbers, so return false, and return true in the else statement.


#3

When you put quotations on true and false it caused the error. You are returning a boolean so none are needed.


#4

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