Why is + so bad for concatenation?
<p>Everybody keeps saying that one of JavaScript's problems is using <code>+</code> [<a href="http://programmers.stackexchange.com/questions/90057/why-do-we-still-use-javascript/90071#90071">example</a>] for string concatenation. Some say the problem is not using <code>+</code>, it's type coercion [see the comments from the previous example]. But strongly-typed languages use + for concatenation and coerce types without any problem. For example, in C#:</p>

<pre><code>int number = 1;
MyObject obj = new MyObject();

var result = "Hello" + number + obj;
// is equivalent to
string result = "hello" + number.ToString() + obj.ToString();
</code></pre>

<p>So why is it that string concatenation in JavaScript is such a big problem?</p>
