A

Admin • 802.91K Points
Coach

Q. What is the result of 2 + '2'?

  • (A) 22
  • (B) 4
  • (C) undefined
  • (D) NaN
  • Correct Answer - Option(A)
  • Views: 1
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin
JavaScript converts 2 to a string and concatenates: '2' + '2'.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.