Unusual Error



The error message is always "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) {
  var val = number % 2 ;
  if ( val === 0){
      return "true"
      return "false"


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


Thanks for the help it works


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