2/14 Add (else if) to the (if/else)


#1

To all those who had hard time finding the answer to this..


#2

It's good that you found the answer. However, I believe it would be better to have some comments in your code that describe how you came to your answer. This way we can show those who have questions how we came to the answer.


#3

Hey,

I also had issues with the code. What I had was a syntax error, as I wrote

else if{
    isNaN(number))
    return "This isn't a number!"; 
        }

Should be:

else if(isNaN(number)){
return "This isn't a number!";
}