Stuck here: unexpected token else


Stuck here : It says unexpected token else
var isEven = function(number) {
// Your code goes here!
if(number % 2 === 0)
return true;
return false;
else if(isNaN(number))
return “The input isn’t a number”;

Question is :Add an else if branch to your existing if/else statement. If the number put into the function is not a number at all, instead of return true; or return false;, the function should return a string that tells the user that their input isn’t a number. (This string can say whatever you like.)


The order should go: if/else if/else…

Switch the else statement and the else if statement positions.

Hope that answers the question.