NEGATIVE_INFINITY 表示负无穷大
- <!DOCTYPE html>
- <html>
- <body>
- <h1>JavaScript Number 对象属性</h1>
- <p>NEGATIVE_INFINITY</p>
- <p id="demo"></p>
- <script>
- var x = Number.NEGATIVE_INFINITY;
- document.getElementById("demo").innerHTML = x;
- </script>
- </body>
- </html>