Copyright © tutorialspoint.com

Javascript Number - MIN_VALUE

previous next

Advertisements


Description:

The Number.MIN_VALUE property belongs to the static Number object. This represents constants for the smallest possible positive numbers that JavaScript can work with.

This constant has actual value 5 x 10-324

Syntax:

You can access this property using the following syntax:

var val = Number.MIN_VALUE;

Example:

Here is the example showing the usage of this property.

<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 following result:

Value of Number.MIN_VALUE : 5 x 10-324

To understand it in better way you can Try it yourself.


previous next

Copyright © tutorialspoint.com