DEVFYI - Developer Resource - FYI

What does "1"+2+4 evaluate to?

JavaScript Interview Questions and Answers


(Continued from previous question...)

36. What does "1"+2+4 evaluate to?

Since 1 is a string, everything is a string, so the result is 124.

(Continued on next question...)

Other Interview Questions