I’m reading this but I’m confused by what is written in the parseInt with a radix argument chapter

table of parseInt(_, 3) outcomes

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

the first ten base-3 natural numbers

3 Answers
3

Leave a Reply

Your email address will not be published. Required fields are marked *