Skip to content

Files

Latest commit

 

History

History
14 lines (8 loc) · 571 Bytes

radix.md

File metadata and controls

14 lines (8 loc) · 571 Bytes

Pattern: Missing radix parameter

Issue: -

Description

Requires the radix parameter to be specified when calling parseInt.

Rationale: Always specify this parameter to eliminate reader confusion and to guarantee predictable behavior. Different implementations produce different results when a radix is not specified, usually defaulting the value to 10.

Further Reading