Some time ago declarations like the following were defined by poor performance:
var a = "my" +
"very" +
"very" +
"long" +
"string" +
"and" +
"even" +
"longer";
I was told that every subsequent + operation causes an additional string to be created since they are immutable. At least, once that was an issue in Java programming language (mind StringBuffer vs. String).
I am talking about the more-or-less recent versions of the browsers of course.
The question is about JavaScript now: is it still not recommended or the runtime can squack (or should I say optimize) the issue like one above in milliseconds without any performance overhead?