Infinity global propertyS2C Home « Globals « Infinity

The javascript global property Infinity is a numeric value that represents +/- infinity.


Examples


The following code illustrates Infinity.


// Initial value.
alert(Infinity); 
// Negative infinity.
alert(-Infinity); 

Press the button below to action the above code:


Related Tutorials

JavaScript Advanced Tutorials - Lesson 3 - Number

go to home page Homepage go to top of page Top