I cannot see what is wrong here



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";


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.


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


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