Math Object
noun
say it: “MATH OB-jekt” /mæθ ˈɒbdʒɛkt/
A built-in JavaScript object full of ready-made math tools, such as Math.round(), Math.max() and Math.random().
What is Math Object in JavaScript?
Math Object — A built-in object containing mathematical constants and functions.
const roundedPrice = Math.round(4.6);
const sample = Math.random();
In a sentence
- “The Math object gave me Math.max(12, 30, 18), the best of three game scores: 30.”
Level: Apprentice · More JavaScript terms at this level
Updated