Home >Web Front-end >JS Tutorial >Example of using the Number.MIN_VALUE attribute in JavaScript_Basic knowledge
The Number.MIN_VALUE property belongs to the static Number object. This represents the smallest possible positive constant that JavaScript can work with.
The actual value of this constant is
Grammar
You can access properties using the following syntax:
var val = Number.MIN_VALUE;
Example:
Here is an example showing the use of this attribute.
<html> <head> <script type="text/javascript"> <!-- function showValue() { var val = Number.MIN_VALUE; alert("Value of Number.MIN_VALUE : " + val ); } //--> </script> </head> <body> <p>Click the following to see the result:</p> <form> <input type="button" value="Click Me" onclick="showValue();" /> </form> </body> </html>
This will produce the following results: