Math.floor()
Returns the largest integer (whole number) less than or equal to a number.
// returns 42
Math.floor(42);
// returns 3
Math.floor(3.14);
// Returns -4
Math.floor(-3.14);
Returns the largest integer (whole number) less than or equal to a number.
// returns 42
Math.floor(42);
// returns 3
Math.floor(3.14);
// Returns -4
Math.floor(-3.14);