Loading…

What is parseInt() and why it is used?

ParseInt() is a method in Java that is used to convert the numbers represented as a string. These numbers are an integer type, and through this method, the string gets converted to an integer.
ParseInt() is used to parse the string and returns it to an integer.

syntax

parseInt(string, radix)

Suggest An Answer

No suggestions avaliable!

Latest post from JQuery interview questions

Ask Question