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


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


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.



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

else if{
    return "This isn't a number!"; 

Should be:

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