Number.MAX_VALUE Property in JavaScript

HTMLJavascriptProgramming Scripts

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

 Live Demo

<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
raja
Published on 29-Oct-2018 11:41:24
Advertisements