If / else if / else


var isEven = function(number) {
  // Your code goes here!
      return true;
      return false;
  else if(isNaN(number)){
      console.log("thats a number");
      console.log("thats not a number");


I keep getting an error


the order is always: if, else if and finally else

you can have 0 or more else if's, but you can't have an else if after else


You are also supposed to return statements in this exercise rather than printing them with console.log.


you only need to change is modify console.log to return


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