Frage im Vorstellungsgespräch bei Meta

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

Antworten zu Vorstellungsgespräch

Anonym

15. Feb. 2022

overrode the setTimeout function to store timeoutids in an array.

Anonym

22. Feb. 2022

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

Anonym

22. Feb. 2022

Test <div>My Div</div>