What does "1"+2+3 evaluates to?

 Posted by Manimaddu on 8/12/2014 | Category: JavaScript Interview questions | Views: 1455 | Points: 40

The Answer is 123.
Because in the above question "1" is string. In java script, when string occurs in the first then it feels everything is string.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response