JavaScript POSITIVE_INFINITY property
Definition and Usage
POSITIVE_INFINITY attribute value represents positive infinity.
POSITIVE_INFINITY property represents a value greater than the Number.MAX_VALUE.
Use Number.POSITIVE_INFINITY
POSITIVE_INFINITY is a static method JavaScript Number object.
Call the method as: Number.POSITIVE_INFINITY.
Using a custom object x Number to call the property (x.POSITIVE_INFINITY) returns undefined:
Browser Support
All major browsers support POSITIVE_INFINITY property.
grammar
Number.POSITIVE_INFINITY;
technical details
return value: | The numeric value: Infinity |
---|---|
JavaScript version: | 1.1 |