Javascript alert number starting with 0
<p>I have a button where in the code behind I add a <code>onclick</code> and I pass a unique ID which will be passed to the js function. The id starts with a 0. </p>

<p>It wasn't working and eventually I figured out that the number, id, it was passing was wrong...</p>

<p>Ie. see this: <a href="http://jsfiddle.net/XYa6U/" rel="nofollow">js fiddle</a></p>

<p>It works with a ' at the start and end of the number. Just wondering why 013 turns to 11. I did some googling and couldn't find anything... </p>

<p>Cheers</p>

<p>Robin</p>

<p>Edit:</p>

<p>Thanks guys. Yep understand now. </p>

<p>As in this case the 0 at the start has a meaning, here the recipient ID in a mailing list, I will use '013' instead of just 013, i.e. a string. I can then split the values in js as each of the 3 values represents a different id which will always be only 1 character long, i.e. 0-9. </p>
