FrontendDeveloper.in

JavaScript question detail

What is NaN property

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

Math.sqrt(-1);
parseInt("Hello");
Back to all JavaScript questions
Get LinkedIn Premium at Rs 399