Infinity is a mathematical concept that refers to a quantity without a bound.
Infinity is greater than any other number, including itself.
Infinity usually occurs when the result of an operation is impossible to represent because it is too large or too small to fit into a float. As a value,
Infinity indicates division by zero or an arithmetic overflow or underflow, for example when the exponent of a floating point number is too large:
Math.pow(2, 1024); // Infinity
isFinite function can be used to check if a given value is a finite number.