min_value
编号MIN_VALUE属性 (Number MIN_VALUE Property)
MIN_VALUE Property is a Number property in JavaScript and it is used to get the minimum value of a number that is possible in JavaScript.
MIN_VALUE属性是JavaScript中的Number属性,用于获取JavaScript中可能的数字的最小值。
Syntax:
句法:
Number.MIN_VALUE;
Note: MIN_VALUE property is called with the "Number", we cannot use this property with a variable. If we use MIN_VALUE with a variable – it returns "undefined".
注意: MIN_VALUE属性使用“ Number”调用,我们不能将此属性与变量一起使用。 如果我们将MIN_VALUE与变量一起使用–它返回“ undefined” 。
Examples:
例子:
Input:
Number.MIN_VALUE
Output:
5e-324
Code:
码:
<html>
<head>
<title>JavaScipt Example</title>
</head>
<body>
<script>
document.write("Min. Value: " + Number.MIN_VALUE + "<br>");
//testing with variable
var num = 123;
document.write("num.MIN_VALUE: " + num.MIN_VALUE + "<br>");
</script>
</body>
</html>
Output
输出量
Min. Value: 5e-324
num.MIN_VALUE: undefined
翻译自: https://www.includehelp.com/code-snippets/number-MIN_VALUE-property-with-example-in-javascript.aspx
min_value