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

Tell us what’s happening:

i just don’t get it what it wants me to do, and does not do the thing. Please help me with this one

Your code so far

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

/* file: styles.css */

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

    setTimeout(() => {
  
  let msg = document.getElementById(obj.inputVal).textContent

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0

Challenge Information:

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

This should come before the = sign, and after it, you should assign the msg property of the current object to it.

So i do
document.getElementById(obj.inputVal).textContent = msg;?

Almost. You need the msg property of the current object though, not just msg. You can access this property with dot notation.

can you give me some hints like the property name i am not getting it.

You access the inputVal property with obj.inputVal… so you access the msg property how?

i know how to access the property but i can’t remember/find what property does msg has or have. please give me hint like what that property does, or where is the reference to that property

The property is msg. The current object is obj. You need to assign the msg property of the obj object after the =.
You access this value in exactly the same way as you accessed the inputVal property of obj, using dot notation.
Sorry if this isn’t clear enough but I’m not sure how else to explain it without just telling you the solution.

2 Likes

I can’t thank you enough. I thought msg has a property not the msg was the property.

2 Likes