Easy Tutorial
❮ Met Namednodemap Removenameditem Event Key Charcode ❯

JavaScript POSITIVE_INFINITY Property

JavaScript Number Object

Example

Return positive infinity:

Output result:


Definition and Usage

The POSITIVE_INFINITY property represents a positive infinity.

The POSITIVE_INFINITY property indicates a value greater than Number.MAX_VALUE.


Using Number.POSITIVE_INFINITY

POSITIVE_INFINITY is a static property of the JavaScript Number object.

It is accessed as: Number.POSITIVE_INFINITY.

Using a custom Number object x to call this property (x.POSITIVE_INFINITY) will return undefined:

Example

x output result:


Browser Support

All major browsers support the POSITIVE_INFINITY property.


Syntax

Technical Details

Return Value: The numeric value: Infinity
JavaScript Version: 1.1
--- ---

More Examples

Example

Create a positive infinity:

n output result:


JavaScript Number Object

❮ Met Namednodemap Removenameditem Event Key Charcode ❯