JS Built-ins
NumberNEGATIVE_INFINITYbeginner

Number.NEGATIVE_INFINITY β€” -1/0

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

Producing NEGATIVE_INFINITY

Dividing -1 by 0 produces -Infinity.

πŸ’‘ Hints (1)
  • β€’ In JavaScript, dividing a negative number by 0 gives `-Infinity`.