parseInt conversion problem

Javascript is great. But some over intelligency cause also great problem to the developer.

Here I give some string to integer conversion result in JavaScript,

1.  parseInt("01")=>1

2.  parseInt("05")=>5

3.  parseInt("08")=>0

4.  parseInt("09")=>0

 

Here javascript is giving wrong result for 3 and 4.

Problem:

Subscribe to RSS - parseInt conversion problem