title: Adding number and array produces weird result in javascript
body: <p>When working in the console of developer tools in chrome, I types in,<br />
  <code>2 + []</code><br />
  and it produced the unexpected result <code>&quot;2&quot;</code>. The same happens with every number. What is happening? Also, when we add some number to a nonempty array, it concatenates the number and the first element of that list, e.g., <code>2+[&quot;abc&quot;,6]</code> produces &quot;2abc, 6&quot;.<br />
  Note: I don't have much experience in js.</p>