JS Built-ins
NumberPOSITIVE_INFINITYbeginner

Number.POSITIVE_INFINITY β€” isFinite returns false

πŸ“– 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 is Not Finite

πŸ’‘ Hints (1)
  • β€’ `Infinity` is not finite β€” only real numbers pass `isFinite`.