The Math Object part 1

JavaScript Tutorial
Core Objects
The Math Object
47
1/3
               

The Math Object



The Math object allows you to perform mathematical tasks, and includes several properties.
For example:
document.write(Math.PI);
//Outputs 3.141592653589793
Try It Yourself

Math has no constructor. There's no need to create a Math object first.

Comments

Popular posts from this blog

String Operators

Introducing object part 3

Associative Arrays part 2