Unit 5- Control Flow - Lesson 1 If/else No clue


#1

Have no clue as to what to do here. This appears to be different from other if/else statement lessons. Don't understand how to write isNaN and what it does for this activity. At this point, just need some clear explanation of the errors in this code. Thanks in advance.


var isEven = function(number) {
  // Your code goes here!
  if(number%2===0)
  return true;
}else if
    (isNaN(number)){
return "This is not a number";
}
else{
    return false;
}
};
isEven();


:confused:


#2

Where is the link that was clearly asked for in the post template?


#3

Not sure I understand what you are asking for. I just copied and pasted my screen


#4

Click the location bar then right-click and copy, Paste here.


#5

thanks, I got if fixed.


#6

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