If/elseif error


#1


showing undetermined string literal error


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


#2

You see how in the syntax highlighting the code following the return is red? That's because it's in a string!

Put a closing quote on that line following number but before the semicolon.


#3

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