The parseInt() function parses a string and returns an integer.
Syntax
parseInt(string, radix)
Parameter | Description | ||
---|---|---|---|
string | Required. The string to be parsed | ||
radix | Optional. A number (from 2 to 36) that represents the numeral system to be used |