JavaScript tutorial:
Infinity property

 

Applies to: Global Object

The Infinity prpperty is used to get an initial value of Number.POSITIVE_INFINITY.

Syntax

Infinity

Return

Returns an initial value of Number.POSITIVE_INFINITY.

Example

The Infinity property is a member of the Global object, and is made available when the scripting engine is initialized.

See also: POSITIVE_INFINITY Property, NEGATIVE_INFINITY Property