Back to Browse

Implementing clearAllTimeout in JavaScript | Facebook Frontend Interview Question | Devtools Tech

1.4K views
Apr 8, 2022
12:05

In this video, we are going to implement clearAllTimeout functionality from scratch. It is a question asked by Facebook in their phone screen round. This is a pretty straightforward question where the clearAllTimeout function would be used to clear all active timers on the page set via setTimeout. 00:00 Introduction 00:48 How to use setTimeout? 01:50 Implementing clearAllTimeout 04:24 Monkey Patching setTimeout 06:19 Testing clearAllTimeout 08:12 Cleaning up 09:34 Discussing clearAllTimeout Implementation 11:37 Outro Solve Question here: https://devtools.tech/questions/s/implement-clearalltimeout-in-javascript-or-facebook-interview-question---qid---fVL1OfJ0cz8OguynnmMO/?ref=yt-clear-timeout-video Try: https://devtools.tech/sandbox/?ref=yt-clear-timeout-video https://devtools.tech/?ref=dtyt You can support our channel via: https://rzp.io/l/support-devtools-tech https://yomeshgupta.gumroad.com/l/code-devtools-support https://www.buymeacoffee.com/yomeshgupta ************************************************************** Devtools Tech is a YouTube channel that was started as a collaborative effort among like-minded engineers to provide high-quality programming tutorials for free. We firmly believe in knowledge sharing and easy access to quality content for everyone. Hence, this channel is an effort to give back to the community and a step toward our belief -- "We rise by lifting others". Interview questions: https://devtools.tech/questions/all?ref=dtyt-ql Interview resources: https://devtools.tech/resources/all?ref=dtyt-rl Team Members: Yomesh Gupta Portfolio: https://yomeshgupta.com LinkedIn: https://www.linkedin.com/in/yomeshgupta/ Twitter: https://twitter.com/yomeshgupta Saloni Kathuria LinkedIn: https://www.linkedin.com/in/salonikathuria/ Twitter: https://twitter.com/saloni_kathuria Medium: https://medium.com/@kathuria.saloni2 Puneet Ahuja Portfolio: https://puneetahuja.in/ LinkedIn: https://www.linkedin.com/in/devpuneetahuja/ Twitter: https://twitter.com/punsahuja #javascript #autocomplete #reactjs #interview **************************************************************

Download

1 formats

Video Formats

360pmp417.2 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Implementing clearAllTimeout in JavaScript | Facebook Frontend Interview Question | Devtools Tech | NatokHD