Return negative infinity:
The result will be:
More "Try it Yourself" examples below.
The NEGATIVE_INFINITY property represents negative infinity.
Negative infinity can be explained as something that is lower than any other number.
NEGATIVE_INFINITY a static property of the JavaScript Number object.
You can only use it as Number.NEGATIVE_INFINITY.
Using x.NEGATIVE_INFINITY, where x is a number or a Number object, will return undefined:
Property | |||||
---|---|---|---|---|---|
NEGATIVE_INFINITY | Yes | Yes | Yes | Yes | Yes |
Return Value: | The numeric value: -Infinity |
---|---|
JavaScript Version: | 1.1 |
Create a negative infinity:
The result of n will be: