Comment

Comment by sixstringtheory

All languages I know of _default_ to a radix of 10 though, allowing other radixes where a prefix is added like 0b111010, 0xa7b45fd9, etc.

Seems intuitive that if parseInt allows omitting the radix parameter, that it should default to whatever radix a standard integer primitive would default to.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton