Added style guide for string concatenation
diff --git a/JavascriptStyleGuide.wiki b/JavascriptStyleGuide.wiki index e5c967b..fd60a06 100644 --- a/JavascriptStyleGuide.wiki +++ b/JavascriptStyleGuide.wiki
@@ -54,4 +54,18 @@ 11. _Variables_: always use *var*, otherwise the variable will pollute the global namespace -12. _Primitive objects_: *never* extend their prototype \ No newline at end of file +12. _Primitive objects_: *never* extend their prototype + +13. _String concatenation_: use + +{{{ +var concatenated = ["string1","string2"].join(""); +}}} + +instead of + +{{{ +var concatenated = "string1" + "string2"; +}}} + +It's usually faster for browsers and more beautiful when new lines are needed because line is too long. \ No newline at end of file