Meta Interview Question

create a function to clearAllTimeouts. And create a render function that takes a nested object of dom elements and appends them to the document body

Interview Answers

Anonymous

Feb 22, 2022

const highestId = window.setTimeout(() => { for (let i = highestId; i >= 0; i--) { window.clearInterval(i); } }, 10);

Anonymous

Feb 15, 2022

overrode the setTimeout function to store timeoutids in an array.

Anonymous

Feb 22, 2022

Test <div>My Div</div>