JavaScript Math Guide
The Math object provides mathematical constants and functions for calculations. Unlike other global objects, Math is not a constructor — all properties and methods are static. The guide walks through Basic Operations, Trigonometry, Random Numbers & Powers, Constants, Min/Max & Rounding. `Math.abs()`, `Math.round()`, `Math.floor()`, `Math.ceil()`, `Math.trunc()` handle basic numeric operations. `Math.sign()` returns -1, 0, or 1 indicating the sign. `Math.sin()`, `Math.cos()`, `Math.tan()`, `Math.asin()`, `Math.acos()`, `Math.atan()`, and `Math.atan2()` provide full trigonometric functions working in radians. The guide is organized into 5 sections that build on each other, each pairing a prose explanation with runnable code. Browse the individual methods covered by this guide in the Math category. Key APIs covered include Math.abs(), Math.ceil(), Math.floor(), Math.round(), Math.trunc(), Math.max(). Related guides: Arrays, Strings, Numbers, Date, Objects. This is one of 145 JavaScript guides on JS Reference — see the full list on the guides page.