Error finding


#1



Please find the error in this. Error says Oops, try again. 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) {
  if ( number % 2 === 0) {
          return "true" ;
           }
     else{
          return "false";
          }
};
isEven(3);


#2

HI try to remove the " " around true and false because it make them string


#3

false and true should be Boolean values, so without the quotation marks. using quotation marks makes them strings


#4

Thank You :slight_smile: