Wierd Javascript addition behavior
<p>Why <code>2 + 10 = 12</code> and <code>2 + 010 = 10</code>? I tried this on console of <em>Google Chrome v 51.0</em> and <em>IE 8</em> only to get the same results. Maybe this is feature of Javascript.<br>
 Somebody please help me understand the logic behind it and what possible good it can serve?</p>