math. floor code example
Example 1: javascript floor
Math.floor(1.6);
result: 1
Example 2: math.floor
console.log(Math.floor(5.05));
// expected output: 5
Math.floor(1.6);
result: 1
console.log(Math.floor(5.05));
// expected output: 5