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

Tell us what’s happening:

what’s wrong with my code, I’ve passed data to the first argument but the error still looks like this: The new setTimeout() function should have an empty callback function as the first argument.

Your code so far

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

/* file: styles.css */

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

setTimeout(() => {
      animationContainer.innerHTML += `
        <p id="${obj.inputVal}" style="margin-top: ${obj.marginTop}px;" class="animation-frame">
          decimalToBinary(${obj.msg})
        </p>
      `;
    }, obj.showMsgDelay);

// 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 103

Hi there!
Read the instructions carefully. Instructions is asking you to:
Add another setTimeout() function. Pass in an empty callback function as the first argument, and pass in the showMsgDelay property of the current object as the second argument.

Why you added extra code within callback function? Reset your challenge step and try again.

ahaha thank you, veruy much sirrr. Sorry, it seems I didn’t understand the instructions so I responded wrongly

1 Like