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

The issue:

I may be too tired to see how obvious my mistake is. I can’t figure out in what order put the element of that element.

The message I get is :

You should use the .getElementById() method to target the element where the id attribute matches the value of inputVal for the current object.

My code so far

obj.id= document.getElementById(inputVal.id).remove()

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 107

Hi @A.I

You don’t need to assign anything for this step.

Look at the right hand side expression.
The order of the methods looks fine.

How are you accessing obj?
What is inputVal?

Happy coding

2 Likes

@Teller thank you for the hint, it’s helping me re-think my code, thank you a lot !

I manage to understand my mistake, and as advice to anyone who struggle, say out loud the way your code shall work !

2 Likes

I hope this help you
mod edit: removed

@Mamadior

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.