DEV Community

Cover image for #6) What is NaN property in JavaScript❓
Mayank Yadav
Mayank Yadav

Posted on

#6) What is NaN property in JavaScript❓

🚀NaN : Not a Number

✔So basically it means that the value should not be a legal number.

image
💠Some Examples for better understanding👇

✔For checking if a value is NaN, we use isNaN() function.
image

⚠##Note:

NaN first converts it into a number type and then compares or equates to NaN.


Top comments (0)