1 min read

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

Leave a Reply

Your email address will not be published. Required fields are marked *