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

Tell us what’s happening:

Don’t know why it isn’t getting the value of obj.inputVal in this way. What should I improve ?

Your code so far

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

/* file: styles.css */

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

      document.getElementById(`${obj.inputVal}`);

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

Challenge Information:

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

Hi there!

You need to assign the DOM method to target id. Also you didn’t need to use template literals Syntex for selecting value within DOM.

3 Likes