Use the parseInt() Function with a Radix

1 Like