is there any difference in javascript? “6″ + 7 + 8 and 6 + 7 + “8″. do you know why?

once there is a lot of mentions about javascript and coffeescript. what is the result of the code below? is there any difference in both results? if so, why?

"6" + 7 + 8
6 + 7 + "8"

if you want, you can add you answer as a comment. or send me a tweet. i’m going to post the answer in few days.

Leave a comment

name*

email* (not published)

website