Multiple choice

What will the output of the statement - Math.ceil(5.3)

  1. 5

  2. 6

  3. 4

  4. 0

  5. 5.3

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The ceil method rounds a number upward to it's nearest integer. The result of ceil(5.3) will be 6