Need help on that one


#1

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


var isEven = function(number) {
  // Your code goes here!
  if(number%2 === 0){
      return true;
  }
  else if(isNan ){
      console.log("I understand");
  }
  else{
      return  false;
  }

};
isEven(ok);


#2
  1. pass number parameter to isNan() function
    else if(isNan )

  2. ok is not a variable(not having value) so it will throw an error.

isEven(ok);


#3

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