Skip to content

Glossary: Algorithms Beyond the Basics in JavaScript

NaN

Also written: Not a Number

The special value JavaScript gives when a calculation isn't a valid number, such as adding `undefined` to a number. It appears silently, with no error, when code reads past the end of an array and does arithmetic on the result.

Where the book teaches it

Related terms

SameValueZero