¨The Math object
allows you to perform
mathematical tasks.
¨All
properties/methods of Math can be called by using Math as an object, without
creating it.
Syntax:
var x = Math.PI; // Returns PI
var y = Math.sqrt(16); // Returns the square root of 16
var y = Math.sqrt(16); // Returns the square root of 16
0 comments:
Post a Comment