Infinity

Table of contents

  1. 1. Summary
  2. 2. Syntax
  3. 3. Description
  4. 4. See also
Table of contents
  1. 1. Summary
  2. 2. Syntax
  3. 3. Description
  4. 4. See also

 

Summary

A numeric value representing infinity.

Core Global Property
Implemented in JavaScript 1.3
ECMAScript Edition ECMAScript 1st Edition

Syntax

Infinity

Description

Infinity is a property of the global object, i.e. it is a variable in global scope.

The initial value of Infinity is Number.POSITIVE_INFINITY. The value Infinity (positive infinity) is greater than any other number including itself. This value behaves mathematically like infinity; for example, anything multiplied by Infinity is Infinity, and anything divided by Infinity is 0.

JavaScript 1.8.5 note

Starting in JavaScript 1.8.5 (Firefox 4), Infinity is read only, as per the ECMAScript 5 specification.

Tags (1)

Edit tags

Attachments (0)

 

Attach file