JavaScript Global Functions
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.7976931348623157E+10308.
-Infinity is displayed when a number exceeds the lower limit of the floating point numbers, which is -1.7976931348623157E+10308.
![]()
The Infinity property is supported in all major browsers.
Display a number that exceeds the limit of the floating point numbers:
The output of the code above will be:
JavaScript Global Functions
Your message has been sent to W3Schools.