JS Built-ins
NumberNEGATIVE_INFINITYbeginner

Number.NEGATIVE_INFINITY β€” equals -Infinity

πŸ“– 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.

Number.NEGATIVE_INFINITY

Number.NEGATIVE_INFINITY equals the global -Infinity.

πŸ’‘ Hints (1)
  • β€’ `NEGATIVE_INFINITY` is equivalent to the global `-Infinity`.