Q
What does Math.ceil(5.2) return in JavaScript?

Answer & Solution

Answer: Option A
Solution:
The result of Math.ceil(5.2) is 6, which rounds the number up to the next largest integer.
Related Questions on Average

What is the result of '10' - 2 in JavaScript?

A). 8

B). 12

C). 102

D). 10

What is the result of 2 ** 3 in JavaScript?

A). 8

B). 6

C). 9

D). 5

What is the result of 10 % 3 in JavaScript?

A). 1

B). 3

C). 0

D). 10

What will be the value of a after let a = 5; a++;?

A). 6

B). 5

C). 7

D). 4

What is the result of 10 + '5' in JavaScript?

A). 105

B). 15

C). 10

D). 5

What is the result of Math.pow(2, 3) in JavaScript?

A). 8

B). 6

C). 9

D). 4

What is the result of 7 * 3 in JavaScript?

A). 21

B). 10

C). 14

D). 9

What does Math.round(5.7) return in JavaScript?

A). 6

B). 5

C). 7

D). 5

What will be the value of x after let x = 10; x %= 4;?

A). 2

B). 4

C). 6

D). 10

What is the result of 5 + 3 in JavaScript?

A). 8

B). 53

C). 35

D). 15