这是一个特殊的数值,表示小于Number.MIN_VALUE的值。该值表示为" -Infinity"。如,任何乘以NEGATIVE_INFINITY的值为NEGATIVE_INFINITY,而除以NEGATIVE_INFINITY的值为零。因为NEGATIVE_INFINITY是一个常数,所以它是Number的只读属性。
Number.NEGATIVE_INFINITY - 语法
var val=Number.NEGATIVE_INFINITY;
Number.NEGATIVE_INFINITY - 示例
var val=Number.NEGATIVE_INFINITY; console.log("Value of Number.NEGATIVE_INFINITY : " + val );
运行上面代码输出
Value of Number.NEGATIVE_INFINITY: -Infinity.
参考链接
https://www.learnfk.com/es6/es6-number-negative-infinity.html
标签:Infinity,val,无涯,Number,NEGATIVE,var,INFINITY From: https://blog.51cto.com/u_14033984/9512385