All about javascript parseInt

parseInt('17', 10); // 17parseInt('010', 10); // 10
parseInt('21', 8);// 17
parseInt('0x11', 16); // 17
parseInt('10001', 2); // 17

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store