Number MAX_VALUE Property - Javascript Number

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.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>

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

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

function myFunction() {//from   ww w.  j  a v  a 2 s .c o m
    document.getElementById("demo").innerHTML = Number.MAX_VALUE;


Related Tutorials