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

15 Feb 2022

overrode the setTimeout function to store timeoutids in an array.

Anonymous

22 Feb 2022

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

Anonymous

22 Feb 2022

Test <div>My Div</div>