Infinity

Infinity — A value representing infinity. This is the same as the value of Number.POSITIVE_INFINITY.

Description

Infinity

Examples

Example #1 – Infinity
var b = Infinity; console.log(typeof b); // number console.log(b); // Infinity
Example #2 – Infinity as a math result
var a = Math.pow(10, 1000); console.log(a); // Infinity console.log(1 / a); // 0

See also

External references