Binary, radix explanation

Tell us what’s happening:
I would like to understand in-depth radix, why the result in the example would be 3 (“11”, 2)?

Your code so far

function convertToInteger(str) {



Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36.

Challenge: Use the parseInt Function with a Radix

Link to the challenge:

the radix say “this number is in base 2” (or if the radix is an other number, then in that base)

are you familiar on how to convert manually a number from decimal to binary or from binary to decimal?
if you are not, you need to study a bit on that

1 Like

Thank you!
No, I am not familiar with converting those, I have just now researched on bynary radix sistem and I understand the computer counts in binary system base 2 (0,1).
I dont know how to convert a number from decimal to binayr or binary to decimal, do you know resources for that?