JS Built-ins
NumberPOSITIVE_INFINITYbeginner

Number.POSITIVE_INFINITY β€” comparison with MAX_VALUE

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

POSITIVE_INFINITY vs MAX_VALUE

Number.POSITIVE_INFINITY is greater than Number.MAX_VALUE.

πŸ’‘ Hints (1)
  • β€’ `Infinity` is beyond the representable float range β€” it is not a finite number.