tubeshowcase●1,148,336 videos♡ My collection 0
← Learn to Code

Learn to Code05:37

Why the Math object in JavaScript is useful 🧮

Bro Code ↗

From the creator

// Math = built-in object that provides a // collection of properties and methods let x = 3; let y = 2; let z = 1; //console.log(Math.PI); //console.log(Math.E); //z = Math.round(x); //z = Math.floor(x); //z = Math.ceil(x); //z = Math.trunc(x); //z = Math.pow(x, y); //z = Math.sqrt(x); //z = Math.log(x); //z = Math.sin(x); //z = Math.cos(x); //z = Math.tan(x); //z = Math.abs(x); //z = Math.sign(x); let max = Math.max(x, y, z); let min = Math.min(x, y, z); console.log(min);

Published 2023-10-19 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code