Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

Number.parseInt()

2 tags 1 category

The Number.parseInt() static method parses a string argument and returns an integer of the specified radix or base.

Return value: If the radix is smaller than 2 or bigger than 36, or the first non-whitespace character cannot be converted to a number, NaN is returned.

Parameters: string The value to parse, coerced to a string. Leading whitespace in this argument is ignored. radix An integer between 2 and 36 that represents the radix (the base in mathematical numeral systems) of the string.

Parameters: If radix is undefined or 0, it is assumed to be 10 except when the number begins with the code unit pairs 0x or 0X, in which case a radix of 16 is assumed.

Syntax example: Number.parseInt(string)

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…