issue with parseInt()

issue with parseInt()

I am facing a strange issue with parseInt function. If i try to parseInt('08') or parseInt('09'), 0 is returned. However if I use parseInt('8') or parseInt('9') then values 8 and 9 are returned respectively.

this issue only happens with '08' and '09'  '88' or '99' are parsed correctly.

Is this a bug or am i missing something?