Javascript parseInt() with leading zeros
<p>Javascript's parseInt function does not seem to completely work.</p>

<pre><code>parseInt("01") returns 1
parseInt("02") returns 2
parseInt("03") returns 3
parseInt("04") returns 4
parseInt("05") returns 5
parseInt("06") returns 6
parseInt("07") returns 7
parseInt("08") returns 0
parseInt("09") returns 0
</code></pre>

<p>You can't explain that. <a href="http://jsfiddle.net/UdbNd/">Give it a try. (jsFiddle)</a></p>

<p><strong>Edit</strong> Since this question was asked and answered, the "feature" of defaulting to octal radix has been deprecated. [<a href="http://www.w3schools.com/jsref/jsref_parseint.asp">1</a>] [<a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/parseInt">2</a>]</p>
