// Math Object program // Math.PI, Math.abs() // Math.sin(), Math.cos() ... // Math.pow(x,y), Math.sqrt() // Math.floor(), Math.ceil(), Math.round(), // Math.min(), Math.max() console.log(Math.sqrt(25)); // sin(), cos(), tan() ... console.log(Math.sin(25)); console.log(Math.abs(-25)); console.log(Math.pow(2, 3)); console.log(Math.floor(2.4)); console.log(Math.ceil(2.4)); console.log(Math.round(2.4)); console.log(Math.max(2, 8)); console.log(Math.min(2, 8)); // returns value between 0 to 1 by default console.log(Math.random()); // returns value between 0 to 5 console.log(Math.random() * 6); // returns value between 0 to 5 integer value console.log(Math.floor(Math.random() * 6)); // returns value between 1 to 5 integer value console.log(Math.floor(Math.random() * 5) + 1);