isNan


#1

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/javascript-beginner-en-qDwp0/0/2?curriculum_id=506324b3a7dffd00020bf661

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

reference error



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


#2

Read ==the Book==
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/isNaN
( and Javascript UPPERcase and lowerCASE sensitive !! )


#3

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