JS Built-ins
NumberNEGATIVE_INFINITYbeginner

Number.NEGATIVE_INFINITY β€” isFinite returns false

πŸ“– Usage Example
// Represents negative infinity
Number.NEGATIVE_INFINITY          // β†’ -Infinity
-1 / 0 === Number.NEGATIVE_INFINITY   // β†’ true

Use Number.NEGATIVE_INFINITY to represent or compare against negative infinity, such as when a computation underflows.

NEGATIVE_INFINITY is Not Finite

Number.isFinite(Number.NEGATIVE_INFINITY) returns false.

πŸ’‘ Hints (1)
  • β€’ Only `Infinity`, `-Infinity`, and `NaN` fail `Number.isFinite`.