Weird javascript output
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/850341/workarounds-for-javascript-parseint-octal-bug">Workarounds for JavaScript parseInt octal bug</a>  </p>
</blockquote>



<p>I was learning the parseInt() function of javascript and was just trying out, and out of nowhere</p>

<pre><code>parseInt('08')  returns 0
</code></pre>

<p>moreover,</p>

<pre><code>parseInt('07')  returns 7 //which is correct
</code></pre>

<p>but again</p>

<pre><code>parseInt('09')   returns 0 // really, are you kidding me.?
</code></pre>

<p>Either I am crazy or I am missing something?</p>
