Changes

Jump to: navigation, search

JavaScript Math Object

No change in size, 18:56, 18 May 2007
Using JavaScript Math Object and Properties
== Using JavaScript Math Object and Properties ==
the The first thing to be aware of with the Math object is that an instance of the object already exists. It is not necessary, therefore, to create a new instance using the ''new'' keyword. You can simply access the methods and properties by referencing ''Math''.
The methods and properties of the JavaScript Math object can be accessed jsut as with any other objects (see [[JavaScript Object Basics]] for more information). For example we can obtain the value of Pi:

Navigation menu