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

Tell us what’s happening:

You should pass in an empty callback function as the first argument to the setTimeout() function.

Your code so far

const showAnimation = () => {
result.innerText = “Call Stack Animation”;

animationData.forEach((obj) => {
setTimeout((() => {}, obj.addElDelay));
});
};

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0

Challenge Information:

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

1 Like

Had an extra parenthesis.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.