Expert Developer JavaScript Question: Download Questions PDF
What is NaN in JavaScript?
![Expert JavaScript Developer Interview Answer Expert JavaScript Developer Interview Question](https://globalguideline.com/public/images/interview/22.png)
Answer:
Nan is literally "Not-a-Number". NaN usually results when either the result or one of the values in an operation is non-numeric. Even though NaN is not a number, 'console.log(typeof NaN === "number");' logs true, while NaN compared to anything else (including NaN) logs false. The only real way to test if a value is equal to NaN is with the function 'isNaN()'.
Download Expert JavaScript Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
What is unescape() function? | What is namespacing in JavaScript and how is it used? |