Number MAX_VALUE Property - Javascript Number

Javascript examples for Number:MAX_VALUE

Description

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>
<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>

Related Tutorials