Q. What will be the output of '2' * 3 in JavaScript?

  • (A) 6
  • (B) 23
  • (C) NaN
  • (D) undefined
πŸ’¬ Discuss
βœ… Correct Answer: (A) 6
Explanation: The multiplication operator converts the string '2' to a number before multiplying.
Explanation by: Mr. Dubey
The multiplication operator converts the string '2' to a number before multiplying.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
75
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
81%
Success Rate