What is the output of console.log(2 ** 3);?
a)
6b)
8c)
9d)
4Answer:
b)
8Explanation:
The ** operator in JavaScript is used for exponentiation. The expression 2 ** 3 means “2 raised to the power of 3”, which equals 8.