parseInt Number JavaScript JS

The JavaScript number parseInt() method is used to convert a string into an Integer number.


Number.parseInt(string, radix)

Parameters string: It represents the string that has to be converted into an integer number. It is a required parameter. radix: It represents the number format. It is an optional parameter.

Returns Integer number.


<!DOCTYPE html>
Please follow and like us:
Content Protection by