Advertisement
728x90
The NaN property is a global property that represents "Not-a-Number" value. i.e, It indicates that a value is not a legal number. It is very rare to use NaN in a program but it can be used as return value for few cases
javascript
1Math.sqrt(-1);
2
3parseInt("Hello");Advertisement
Responsive Ad
🎯 Practice NowRelated Challenge
JavaScript Coding Exercise 85
Test your knowledge with this interactive coding challenge.
Start CodingAdvertisement
728x90
84of476