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
g.ferderer:
obj.msg
6 Likes
ohhh, now i got it! Thanks,nice tip
system
Closed
August 25, 2024, 11:35am
5
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.