A

Admin • 833K Points
Coach

Q. What is the output of: console.log('5' + 3);

  • (A) 8
  • (B) 53
  • (C) NaN
  • (D) Error
  • Correct Answer - Option(B)
  • Views: 14
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

The + operator with a string and number results in string concatenation, so '5' + 3 = '53'.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.