what is math.floor(4.6) code example
Example 1: math.floor
console.log(Math.floor(5.95));
// expected output: 5
console.log(Math.floor(5.05));
// expected output: 5
Example 2: math.floor
console.log(Math.floor(5.05));
// expected output: 5
console.log(Math.floor(5.95));
// expected output: 5
console.log(Math.floor(5.05));
// expected output: 5
console.log(Math.floor(5.05));
// expected output: 5