Description

JavaScript includes a special function for giving all numbers in the language access to properties and methods. It also allows us to create a few numbers not contained in the decimal number system JavaScript supports, such as +Infinity and –Infinity.

Numbers Are Everywhere in JavaScript

Already you've seen several examples of numbers being used in this book: the factorial functions, the length property of strings, functions, and arrays, in for statement loops, as arguments fed to Boolean() constructor functions, and so on. The list goes on and on.