3. If / else if / else


#1


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

Oops, try again. There was a problem with your syntax.
SyntaxError: Unexpected identifier


var isEven = function(number) {
  // Your code goes here!
  if (number % 2 === 0) {
      return true;
      
  }
  
  else if isNaN(isNan(number)){
      return "Input is not a number");
  }
      
  
  else {
      return false;  
  }
};
console.log(isEven());
console.log(isEven(3));
console.log(isEven(4));


#2

@youngq,
-1
An IF condition should be encapsulated in a pair of parenthesis-( )
-2
have a read
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/isNaN