A

Admin • 833K Points
Coach

Q. What is the output of 1 + '2' + 3?

  • (A) 123
  • (B) 6
  • (C) 33
  • (D) 15
  • Correct Answer - Option(A)
  • Views: 18
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

JavaScript performs left-to-right concatenation when a string is involved.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.