Junior JavaScript

What is NaN?

NaN stands for “Not-a-Number”, representing an invalid numeric operation.

Example:

console.log("hello" / 2); // NaN

More from JavaScript Tutorial

All questions for this course