After looking through the JS programming manual, it turns out that parseInt will automatically convert the passed parameter value into the corresponding eight, ten, and hexadecimal value. In this case, the base can be set to distinguish special situations.