The POSITIVE_INFINITY property represents positive infinity.
The POSITIVE_INFINITY property represents positive infinity.
POSITIVE_INFINITY a static property of the Number object.
You can only use it as Number.POSITIVE_INFINITY.
Using x.POSITIVE_INFINITY, where x is a number or a Number object, will return undefined:
Number.POSITIVE_INFINITY;
The numeric value: Infinity
The value of x will be:
//display positive infinity. var x = 100;//from w w w .j a v a 2 s. c om console.log(x.POSITIVE_INFINITY); //Return positive infinity: console.log(Number.POSITIVE_INFINITY); //Create a positive infinity: //create a positive infinity. var n = (Number.MAX_VALUE) * 2; console.log(n);