# Using NEGATIVE\_INFINITY in JavaScript

**URL:** <https://forum.pinegrow.com/t/using-negative-infinity-in-javascript/5142>\
**Category:** Javascript\
**Created:** [March 22, 2021, 7:37am UTC](https://forum.pinegrow.com/t/using-negative-infinity-in-javascript/5142 "2021-03-22T07:37:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankitdixit](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/ankitdixit/32/3428_2.png) [@ankitdixit](https://forum.pinegrow.com/u/ankitdixit)\
**Post date:** [March 22, 2021, 7:37am UTC](https://forum.pinegrow.com/t/using-negative-infinity-in-javascript/5142/1 "2021-03-22T07:37:30Z")

</div>

Hello Everyone, I am new here and I want to know about NEGATIVE\_INFINITY in JavaScript. I am learning javascript and I have one doubt NEGATIVE\_INFINITY is a static property in JS that results? Can anyone know about it? I am preparing some javascript interview topics, Can anyone suggest me?

---

<div class="post-metadata">

**Author:** ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)\
**Post date:** [March 22, 2021, 10:16am UTC](https://forum.pinegrow.com/t/using-negative-infinity-in-javascript/5142/2 "2021-03-22T10:16:57Z")

</div>

It is a static property of Number.  
Here is a pretty good post about it: [https://dmitripavlutin.com/infinity-in-javascript/](https://dmitripavlutin.com/infinity-in-javascript/)  
Cheers,  
Bob

---

<div class="post-metadata">

**Author:** ![johanepic](https://avatars.discourse-cdn.com/v4/letter/j/aca169/32.png) [@johanepic](https://forum.pinegrow.com/u/johanepic)\
**Post date:** [September 20, 2021, 9:12am UTC](https://forum.pinegrow.com/t/using-negative-infinity-in-javascript/5142/3 "2021-09-20T09:12:58Z")

</div>

Negative infinity is something that is lower than any other number . This means that no other number is lesser than this value. In JavaScript negative infinity is a constant value which is used to represent a value which is the lowest available .

```auto
var x = 500;
x.NEGATIVE_INFINITY;

```

`returned "undefined"`

This works great in JavaScript because any value compared to Math.NEGATIVE\_INFINITY will be greater.

In other languages like C++, it’s common to use the minimum value of an integer, float, etc.
