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

Tell us what’s happening:

Task is to add in new setTimeout function and pass in an empty call back funciton and property of current object as arguments.What is wrong?

Your code so far

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

/* file: styles.css */

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

setTimeout(()=>{},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/142.0.0.0 Safari/537.36 Edg/142.0.0.0

Challenge Information:

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

Hi @zm17jaga

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.

The second argument is a reference to the function, not a function call.

Happy coding