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

Answer & Solution

Answer: Option A
Solution:
The value of a will be 4 after the decrement operation.
Related Questions on Average

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

A). 5

B). 2

C). 20

D). 10

What is the result of 10 % 3 in JavaScript?

A). 1

B). 3

C). 0

D). 10

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

A). 15

B). 10

C). 5

D). 20

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

A). 8

B). 12

C). 102

D). 10

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

A). 20

B). 12

C). 8

D). 5

What is the result of 20 / 5 in JavaScript?

A). 4

B). 5

C). 25

D). 15

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

A). 105

B). 15

C). 10

D). 5

What is the result of 10 - 6 in JavaScript?

A). 4

B). 6

C). 16

D). -4

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

A). 8

B). 6

C). 9

D). 4

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

A). 8

B). 6

C). 9

D). 5