parseInt()is an ECMAScript1 (JavaScript 1997) feature. It is supported in all browsers: ChromeEdgeFirefoxSafariOperaIE YesYesYesYesYesYes More Examples Parse different values: parseInt("10",10); parseInt("010"); parseInt("10",8);
The radix parameter is used to specify which numeral system to be used, for example, a radix of 16 (hexadecimal) indicates that the number in the string should be parsed from a hexadecimal number to a decimal number.If the radix parameter is omitted, JavaScript assumes the following:...