Home > Web Front-end > JS Tutorial > Example of using the Number.MIN_VALUE attribute in JavaScript_Basic knowledge

Example of using the Number.MIN_VALUE attribute in JavaScript_Basic knowledge

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 15:56:44
Original
1310 people have browsed it

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

201564115300827.jpg (97×48)

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>

Copy after login

This will produce the following results:

201564115330440.jpg (322×33)

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
What are JavaScript hook functions?
From 1970-01-01 08:00:00
0
0
0
What is JavaScript garbage collection?
From 1970-01-01 08:00:00
0
0
0
c++ calls javascript
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template