Javascript - Global Infinity Property

Infinity is a numeric value that represents positive infinity.

Description

Infinity is a numeric value that represents positive infinity.

-Infinity is a numeric value that represents negative infinity.

Infinity is displayed when a number exceeds the upper limit of the floating point numbers, which is 1.797693134862315E+308.

-Infinity is displayed when a number exceeds the lower limit of the floating point numbers, which is -1.797693134862316E+308.

Example

Display a number that exceeds the limit of a floating point number:

Demo

console.log(1.7976931348623157E+10308 + "\n" +  -1.7976931348623157E+10308);

Result