Example 1 — Read Number.NEGATIVE_INFINITY
Confirm it matches the -Infinity literal.
console.log(Number.NEGATIVE_INFINITY);
console.log(Number.NEGATIVE_INFINITY === -Infinity);
console.log(-1 / 0); How It Works
- Static access. Read
Number.NEGATIVE_INFINITYon the constructor. - Same bits. It equals the
-Infinityliteral. - Division form.
-1 / 0is a common way to produce the same value. - Not a method. There is no
(1).NEGATIVE_INFINITY.

