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

Tell us what’s happening:

idk what i am really doing wrong here as i am doing as it asks but dont really under stands where it wants me to put the information it wants from me.

Your code so far

You used the inputVal property as the id attribute for your paragraph elements. Now you can target those the paragraph elements with those ids.

Use the .getElementById() method to select the element with the id attribute with the value of the inputVal property of the current object.

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.


document.getElement(obj.inputVal);

Your browser information:

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

Challenge Information:

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

1 Like

Use the .getElementById() method
document.getElement(obj.inputVal);

3 Likes

i cant believe i missed that. thanks

3 Likes

it happens ,I’m glad i can help

1 Like

this still doesn’t work