What is NaN in Javascript?



What is NaN in Javascript?..

Answer / Navneet Kumar Singh

NaN (Not-a-Number) is a special value in JavaScript that represents an undefined or invalid numeric operation. It's returned when an operation cannot be performed, such as dividing by zero, taking the square root of a negative number, or trying to convert a non-numeric string into a number.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

What is event bubbling and capturing in javascript?

1 Answers  


Why javascript is called as script for all browsers?

1 Answers  


What is called variable?

1 Answers  


When would you use javascript closures?

1 Answers  


What are the four basic data structures in javascript?

1 Answers  


Explain the working of timers in javascript?

1 Answers  


What are the boolean operators supported by javascript? And operator: &&

1 Answers  


What is a scope in javascript?

1 Answers  


What does the attribute defer/async do when added to the script tag?

1 Answers  


Do you have to declare variables in javascript?

1 Answers  


What is differential inheritance?

1 Answers  


What is var and let in javascript?

1 Answers  


Categories