parseInt
parseInt – Parses a string as an integer
Description
parseInt(string string, integer radix)
Parameters
Name | Description | Type | Default | Optional |
---|---|---|---|---|
string | string | No | ||
radix | A numeric value between 2 and 36 specifying the representation. | integer | 10 | No |
Return values
Returns an integer representation of the string.
Examples
Example #1 – parseInt example