Javascript examples for Number:MAX_VALUE
The MAX_VALUE property returns the largest number possible in JavaScript, which is 1.7976931348623157e+308.
The following code shows how to return the largest number possible in JavaScript.
<!DOCTYPE html> <html> <body> <button onclick="myFunction()">Test</button> <p id="demo"></p> <script> function myFunction() {//from ww w. j a v a 2 s .c o m document.getElementById("demo").innerHTML = Number.MAX_VALUE; } </script> </body> </html>