A numeric value representing infinity.
Core property
Syntax
Infinity
Description
Infinity is a top-level property and is not associated with any object.
The initial value of Infinity is Number.POSITIVE_INFINITY. The value Infinity (positive infinity) is greater than any other number including itself. This value behaves mathematically like infinity; for example, anything multiplied by Infinity is Infinity, and anything divided by Infinity is 0.