Site icon TechnologiesPosts

JavaScript parseInt() for type casting

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    
Share your Love
Exit mobile version