There are few internals of parseInt function which you must know before using this function.

Please be careful using parseInt function if your input string may start from 0. the best practice is to always specify radix.