JavaScript 中的 Number.MAX_VALUE 属性
htmljavascriptprogramming scripts更新于 2024/10/13 5:00:17
Number 对象的 Number.MAX_VALUE 属性表示 JavaScript 中允许的最大数字。
语法
其语法如下
Number.MAX_VALUE
示例
<html>
<head>
<title>JavaScript 示例</title>
</head>
<body>
<script type="text/javascript">
var result = Number.MAX_VALUE;
document.write("Maximum value: " + result);
</script>
</body>
</html>
输出
Maximum value: 1.7976931348623157e+308
相关文章
有用资源
html 参考教程 - 该教程包含有关 html 的更多信息:https://www.cainiaomax.com/html/

