How To Use Number Object MIN_VALUE Property In JavaScript

In this article I am going to explain about Number Object MIN_VALUE Property In JavaScript.
  • 1592

Use MIN_VALUE Property in JavaScript

The number object MIN_VALUE property return the smallest number in JavaScript.

MIN_VALUE method will close the number 0.

It is not allowed the negative value.

All browsers support number object MIN_VALUE property.

Syntax

Number.MIN_VALUE

Example

<!DOCTYPE html>

<html>

<body style ="background-color:Red">

 

<p id="demo">Display the smallest possible number in JavaScript.</p>

 

<button onclick="myFunction()">Click here</button>

 

<script type="text/javascript">

    function myFunction()

    {

        document.getElementById("demo").innerHTML = Number.MIN_VALUE;

    }

</script>

 

</body>

</html>

Output1

op1.jpg

Output2

 op2.jpg

Further Readings

You may also want to read these related articles :here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2018 DotNetHeaven. All rights reserved.