What will be the result of the code?

var a = isNaN("2014");
alert(a);
Explanation
JavaScript automatically interprets "2014" value from string to number and returns false, as it is number.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
JavaScript quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes