Skip to main content
Version: 3.26.0

Infinity

The global property Infinity is a numeric value representing infinity.

Value

The same number value as Number.POSITIVE_INFINITY.

Description

Infinity is a property of the global object. In other words, it is a variable in global scope.

The value Infinity (positive infinity) is greater than any other number.

This value behaves slightly differently than mathematical infinity; see Number.POSITIVE_INFINITY for details.