Javascript examples for Number:NEGATIVE_INFINITY
Create a negative infinity:
<!DOCTYPE html> <html> <body> <button onclick="myFunction()">Test</button> <p id="demo"></p> <script> function myFunction() {/*w w w . ja v a 2 s. com*/ var n = (-Number.MAX_VALUE) * 2; document.getElementById("demo").innerHTML = n; } </script> </body> </html>