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

Number.NEGATIVE_INFINITY in JavaScript


The Number.NEGATIVE_INFINITY property of the Number object represents the negative infinity value.

Syntax

Its Syntax is as follows

Number.NEGATIVE_INFINITY

Example

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

Output

Negative infinity value: -Infinity