Q
What will be the value of x after let x = 10; x *= 2;?

Answer & Solution

Answer: Option A
Solution:
The value of x will be 20 after the multiplication assignment operation.
Related Questions on Average

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

A). 6

B). 5

C). 7

D). 5

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

A). 8

B). 6

C). 9

D). 5

What will be the value of x after let x = 10; x -= 3;?

A). 7

B). 13

C). 3

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 20 / 5 in JavaScript?

A). 4

B). 5

C). 25

D). 15

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

A). 8

B). 6

C). 9

D). 4

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

A). 8

B). 12

C). 102

D). 10

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

A). 4

B). 5

C). 3

D). 6

What is the result of 10 - 6 in JavaScript?

A). 4

B). 6

C). 16

D). -4

What is the result of 7 * 3 in JavaScript?

A). 21

B). 10

C). 14

D). 9