JS

Functions in JavaScript - Floor function in JavaSc...

6.

Which of the following statements about the Math.floor() function in JavaScript is true?

The Math.floor() function returns the decimal part of a number.

The Math.floor() function rounds a number down to the nearest integer.

The Math.floor() function rounds a number up to the nearest integer.

The Math.floor() function always returns a positive integer.