A

Admin • 825.56K Points
Coach

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

  • (A) 6
  • (B) 23
  • (C) NaN
  • (D) undefined
  • Correct Answer - Option(A)
  • Views: 8
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin
The multiplication operator converts the string '2' to a number before multiplying.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.