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  

Nikunj K

Phasellus facilisis convallis metus, ut imperdiet augue auctor nec. Duis at velit id augue lobortis porta. Sed varius, enim accumsan aliquam tincidunt, tortor urna vulputate quam, eget finibus urna est in augue.