JS Built-ins
NumberPOSITIVE_INFINITYbeginner

Number.POSITIVE_INFINITY β€” equals Infinity

πŸ“– Usage Example
// Represents positive infinity
Number.POSITIVE_INFINITY          // β†’ Infinity
1 / 0 === Number.POSITIVE_INFINITY   // β†’ true

Use Number.POSITIVE_INFINITY to represent or compare against positive infinity, such as when a computation overflows.

Number.POSITIVE_INFINITY

Number.POSITIVE_INFINITY equals the global Infinity.

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