What is the number “12” in base-12?
10
Why?
The right-most digit is the ones’ digit. The next is the base, 12. The third digit, if there was one, would be 144.
Repeat, this time with “5” in base-5.
Once again, the second digit is the radix, 5, and the right-most digit is still the one’s place.
You can repeat this exercise with any number. The second digit will always be the radix, by definition, so any number expressed with a radix of itself will always equal 10.
solved n..toString(n) Why does the code return a value of “10”?