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

Tell us what’s happening:

Hey, I am having trouble with this code. I am sure it should pass. Can anyone let me know?

Your code so far

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

/* file: styles.css */

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

const element = document.getElementById(obj.inputVal);
element.textContent = obj.msg;



// User Editable Region

Your browser information:

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

Challenge Information:

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

1 Like

Hi @PieroGentile

You should chain .textContent to the .getElementById() method.

For this step you can chain the property to the method.
No need to add a new line.

Happy coding

thank you!!! :laughing: :smiling_face:

1 Like