I discovered a bug in javascript function parseInt(). Report this?
<p>I have some zeros prior to a positive integer. I want to remove the zeros so only the positive integer remains. Like '001' will only be '1'. I thought the easiest way was to use parseInt('001'). But what I discovered is that it don't works for the number 8 and 9. Example parseInt('008') will result in '0' instead of '8'.</p>

<p>Here are the whole html code:</p>

<pre><code>&lt;html&gt; &lt;body&gt;
&lt;script&gt;
var integer = parseInt('002');
document.write(integer);

&lt;/script&gt;
&lt;/body&gt; &lt;/html&gt;
</code></pre>

<p>Pls give a try!</p>

<p>But can I somehow report this problem? Do anyone know an another easy workaround this problem?</p>

<p>UPDATE:</p>

<p>There was no bug sorry! See answers below</p>
