Number NEGATIVE_INFINITY Property - Javascript Number

Javascript examples for Number:NEGATIVE_INFINITY

Description

The NEGATIVE_INFINITY property represents negative infinity.

Click the button to display negative infinity.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<button onclick="myFunction()">Test</button>

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

<script>
function myFunction() {//from   w w  w.  j  ava  2s .  c o m
    document.getElementById("demo").innerHTML = Number.NEGATIVE_INFINITY;
}
</script>

</body>
</html>

The following code shows how to


Related Tutorials