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

after chaining (.textContent) to the (.getElementById)still the code does not pass,below is the line of code:
document.getElementById(obj.msg).textContent;

Your code so far

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

/* file: styles.css */

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

      document.getElementById(obj.inputVal);
      document.getElementById(obj.msg).textContent

// 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/124.0.0.0 Safari/537.36

Challenge Information:

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

You have modified your code. Reset your code and modify the existing code is shown in the editor by:
setting the .textContent property of the targeted element equal to the msg property of the current object.
@1douglas

Hint
Chain textContent to document.getElementById(obj.inputVal) and equal it to obj.msg.

1 Like

Thankyou buddy that was helpful

Your welcome buddy, happy Coding.

1 Like