πŸ“Š JavaScript
Q. Which is the exponentiation operator in JavaScript?
  • (A) exp()
  • (B) ^
  • (C) **
  • (D) pow
πŸ’¬ Discuss
βœ… Correct Answer: (C) **

Explanation:

In JavaScript, ** is the exponentiation operator used to raise a number to the power of another.
Example:

console.log(2 ** 3); // Output: 8

Explanation by: Mr. Dubey

In JavaScript, ** is the exponentiation operator used to raise a number to the power of another.
Example:

console.log(2 ** 3); // Output: 8

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
181
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
98%
Success Rate