Learn Recursion by Building a Decimal to Binary Converter - Step 109

Tell us what’s happening:

I already solved the step but I would like to understand how the binary part works better. I already read the text but didn’t understand it if someone could explain it to me that would be much appreciated.

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region

result.textContent = decimalToBinary()

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36 OPR/109.0.0.0

Challenge Information:

Learn Recursion by Building a Decimal to Binary Converter - Step 109

can you elaborate on this question?
To me it sounds like you are asking how do binary numbers get formed from decimals (which is a valid question) but I just wanted to clarify if that really was the question or if it was a coding question.

I am asking how the code makes the binary numbers and a little how they get formed aswell

okay, I tried to find a simple explanation for binary numbers online:

after you’ve looked through it, go back to the code and then try to find which part you want more information about and let us know.