DEVFYI - Developer Resource - FYI

How about 2+5+"8"?

JavaScript Interview Questions and Answers


(Continued from previous question...)

49. How about 2+5+"8"?

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

(Continued on next question...)

Other Interview Questions