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

Tell us what’s happening:

HI people!
I really don’t know what I’m doing wrong here, maybe I don’t understand the point…
or maybe I’m missing something

Your code so far

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

/* file: styles.css */

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

document.getElementById("result").textContent = decimalToBinary(5);

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0

Challenge Information:

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

Simply follow the instructions:
set the textContent property of result equal to calling decimalToBinary() with 5 as an argument.

textContent.result = decimalToBinary(5);

textContent.(“result”) = decimalToBinary(5);

i just try both but no succes…

I’ve also tried several times
document.getElementById(“result”).textContent = decimalToBinary(5)
I think it has to be

I don’t know where this is coming from exactly, but you are making this more complicated than you need to

the textContent property of result

You have a variable called result. You need to use that variable.

1 Like

Thx mate i have it i do really to complicated hahah
now i check it