Skip to content

Glossary: JavaScript Basics

NaN

Also written: Not a Number

"Not a number": the result of a failed number conversion such as `Number("12 oz")`. It spreads silently through arithmetic, so test with `Number.isNaN`.

Where the book teaches it

Related terms

FalsyType coercion