Number MIN_VALUE Property - Javascript Number

Javascript examples for Number:MIN_VALUE

Description

The MIN_VALUE property returns the smallest positive number possible in JavaScript, which is 5e-324.

The following code shows how to return the smallest positive 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() {//w  ww.ja v  a 2s . c  o m
    document.getElementById("demo").innerHTML = Number.MIN_VALUE;
}
</script>

</body>
</html>

Related Tutorials