代码示例:(标识:jsck_negative_infinity_obj)
<!DOCTYPE html>
<html>
<body>

<h1>JavaScript 数字</h1>

<h2>NEGATIVE_INFINITY 属性</h2>

<p>使用 x.NEGATIVE_INFINITY,其中 x 是一个变量,返回 undefined:</p>

<p id="demo"></p>

<script>
let x = 100;
document.getElementById("demo").innerHTML = x.NEGATIVE_INFINITY;
</script>

</body>
</html>
运行结果: