What is math.floor(3.6)?

Correct Answer: 3

Explanation:

The Math.floor() function in JavaScript is used to round off the number passed as parameter to its nearest integer in Downward direction of rounding i.g towards the lesser value.


 


Hence, math.floor(3.6) = 3.


Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion