Easy Tutorial
❮ Prop Frame Contentdocument Prop Email Required ❯

JavaScript NEGATIVE_INFINITY Property

JavaScript Number Object

Example

Return negative infinity:

Output result:


Definition and Usage

The NEGATIVE_INFINITY property represents negative infinity.

The NEGATIVE_INFINITY property represents a value less than Number.MIN_VALUE.


Using Number.NEGATIVE_INFINITY

NEGATIVE_INFINITY is a static property of the JavaScript Number object.

It is accessed as: Number.NEGATIVE_INFINITY.

Using a custom Number object x to call this property (x.NEGATIVE_INFINITY) will return undefined:

Example

x output result:


Browser Support

All major browsers support the NEGATIVE_INFINITY property.


Syntax

Technical Details

Return Value: Negative infinity, returned when overflow occurs.
JavaScript Version: 1.1
--- ---

More Examples

Example

Create a number with negative infinity:

n output result:


JavaScript Number Object

❮ Prop Frame Contentdocument Prop Email Required ❯