console.log(Math.sqrt(25)); => 5
console.log(25 ** (1/2)); => 5
console.log(8 ** (1/3)); => 2
console.log(Math.max(5,18,23,11,2)); => 23
console.log(Math.min(5,18,23,11,2)); => 2
//Make a function that can generate random number between min & max
const randomInt = (min, max) => Math.floor(Math.random() * (max - min) + 1) + min;
console.log(randomInt(10,20));
//Rounding Integers
console.log(Math.trunc(23.3)); => 23
console.log(Math.round(23.3)); => 23
console.log(Math.round(23.9)); => 24
console.log(Math.ceil(23.3)); => 24
console.log(Math.ceil(23.9)); => 24
console.log(Math.floor(23.3)); => 23
console.log(Math.floor(23.9)); => 23
//Difference Between Math.trunc & Math.floor
console.log(Math.trunc(-23.3)); => -23
console.log(Math.floor(-23.3)); => -24
//Rounding Decimals *toFixed() It Return String
console.log((2.7).toFixed(0)); => 3
console.log((2.7).toFixed(3)); => 2.700
console.log((2.345).toFixed(2)); => 2.35