Computer >> Computer tutorials >  >> Programming >> Javascript

Number.MAX_VALUE Property in JavaScript


The Number.MAX_VALUE property of the Number object represents the maximum number allowed in JavaScript.

Syntax

Its Syntax is as follows

Number.MAX_VALUE

Example

<html>
<head>
<title>JavaScript Example</title>
</head>
<body>
   <script type="text/javascript">
      var result = Number.MAX_VALUE;
      document.write("Maximum value: " + result);
   </script>
</body>
</html>

Output

Maximum value: 1.7976931348623157e+308