What is NaN in JavaScript?

JavaScript Associate Easy

JavaScript Associate — Easy

What is NaN in JavaScript?

Key points

  • NaN is a unique value in JavaScript
  • It is used to indicate errors in numeric operations
  • NaN is not the same as null or undefined
  • It is not a string that cannot be converted to a number

Ready to go further?

Related questions