The second parameter to the parseInt function specifies the base for the conversion operation. This parameter is optional and usually defaults to 10 (base/radix is 10 for a decimal number). But different implementations may behave differently, causing unwanted results. It also improves readability, if the base is given.