The NEGATIVE_INFINITY property represents negative infinity.
The NEGATIVE_INFINITY property represents negative infinity.
NEGATIVE_INFINITY is a static property of the JavaScript Number object. You can only use it as Number.NEGATIVE_INFINITY.
Number.NEGATIVE_INFINITY;
The numeric value: -Infinity
The value of x will be:
var x = 100; console.log(x.NEGATIVE_INFINITY);//ww w . j av a2s. c o m //Return negative infinity: console.log(Number.NEGATIVE_INFINITY); //Create a negative infinity: //create a negative infinity. var n = (-Number.MAX_VALUE) * 2; console.log(n);