9 January 2014

What does 3+4+"7" evaluate to? in javascript

Since 3 and 4 are integers, this is number arithmetic, since 7 is a string, it is concatenation, so 77 is the result.

No comments:

Post a Comment