Home > DeveloperSection > Interviews > What will be result of 2 5 "8"?

Posted on    February-28-2011 12:00 AM

 JavaScript JavaScript 
Ratings:
 1 Answer(s)
  1509  View(s)
Rate this:

Awadhendra Tiwari

Total Post:510

Points:2550
Posted on    February-28-2011 1:00 AM

Since 2 and 5 are integers, this is number arithmetic, since 8 is a string, it’s concatenation, so 78 is the result.

Don't want to miss updates? Please click the below button!

Follow MindStick