Why is it that parseInt(8,3) == NaN and parseInt(16,3) == 1?
I’m reading this but I’m confused by what is written in the parseInt with a radix argument chapter Why is it that parseInt(8, 3) → NaN and parseInt(16, 3) → 1? AFAIK 8 and 16 are not base-3 numbers, so parseInt(16, 3) should return NaN too 3 Answers 3