Number.NEGATIVE_INFINITY एक विशेष अंकीय मान है जो Number.MIN_VALUE से कम मान को दर्शाता है। यह मान "-इन्फिनिटी" के रूप में दर्शाया गया है। यह अपने गणितीय व्यवहार में अनंत जैसा दिखता है।
उदाहरण
Number.NEGATIVE_INFINITY स्थिरांक के साथ काम करने का तरीका जानने के लिए आप निम्न कोड चलाने का प्रयास कर सकते हैं -
<html>
<head>
<script>
<!--
function showValue() {
var smallNumber = (-Number.MAX_VALUE) * 2
if (smallNumber == Number.NEGATIVE_INFINITY) {
alert("Value of smallNumber : " + smallNumber );
}
}
//-->
</script>
</head>
<body>
<p>Click the following to see the result:</p>
<form>
<input type="button" value="Click Me" onclick="showValue();" />
</form>
</body>
</html>