• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

The Math Object

The Math object is a built-in JavaScript object that includes math constants and functions. You don't need to create a Math object, because it exists automatically in any JavaScript program. The Math object's properties represent mathematical constants, and its methods are mathematical functions.

Tip

Because you may use the Math object's properties and methods throughout an entire group of statements, you may find it useful to use the with keyword, introduced earlier in this hour, to specify the Math object for those statements.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint