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

Tell us what’s happening:

Using the .getElementById() method, set the textContent property of the targeted element equal to the msg property of the current object.
You should set the textContent property of the targeted element equal to the msg property of the current object.

Your code so far

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

Challenge Information:

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

1 Like

I would suggest resetting the lesson.

You already have this element here

document.getElementById(obj.inputVal)

you need to set the textContent for that element. And the value you need to set would be the msg property of the current object.

hope that helps

3 Likes

it looks like you were close here

you just need to assign the msg to it to pass

6 Likes

ohhh, now i got it! Thanks,nice tip :+1:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.