178k views
3 votes
What is the value of the current statement?

Math.floor(2.1);

User Tim Sparg
by
7.3k points

1 Answer

1 vote

Answer: 2

Step-by-step explanation:

Math.floor returns the largest integer less than or equal to what is given.

It is the floor function used in general mathematics. floor is a static object of the math function.

User Lonimor
by
7.1k points