This video will be available to
subscribers on Thu, Sep 25, 2025.
subscribers on Thu, Sep 25, 2025.
You must be a subscriber to view this video.
Sep 25, 2025
11m:4s
Timers and Intervals
Classification
Software Engineering | Languages | JavaScript
Keywords
browser | javascript
About This Episode:
Timers are everywhere in JavaScript: countdowns, clocks, animations, polling APIs… but they don’t always behave the way you expect. In this video, we break them down so you can use them with confidence.
You’ll learn:
⏳ setTimeout – schedule code to run later
🔁 setInterval – repeat actions at intervals
❌ Canceling timers – clearTimeout, clearInterval
🧑💻 Real-world use cases – clocks, countdowns, polling APIs
⚠️ Pitfalls – interval drift, blocked UI, when not to rely on timers
We’ll demo:
- Building a start/pause digital clock
- Defusing a “time bomb” ⏱💣 with clearTimeout
- Seeing timer drift in action when the event loop is overloaded
By the end, you’ll know not just how to use timers—but how to spot when they lie to you 🕵️♂️
You’ll learn:
⏳ setTimeout – schedule code to run later
🔁 setInterval – repeat actions at intervals
❌ Canceling timers – clearTimeout, clearInterval
🧑💻 Real-world use cases – clocks, countdowns, polling APIs
⚠️ Pitfalls – interval drift, blocked UI, when not to rely on timers
We’ll demo:
- Building a start/pause digital clock
- Defusing a “time bomb” ⏱💣 with clearTimeout
- Seeing timer drift in action when the event loop is overloaded
By the end, you’ll know not just how to use timers—but how to spot when they lie to you 🕵️♂️
Short Bio:
Bob Cravens is a seasoned technology leader, software architect, and educator with a passion for empowering others through practical, real-world knowledge. As the founder of TekFoundry, Bob has dedicated his career to designing and delivering innovative software solutions that combine cutting-edge technology with elegant simplicity.
At TekCasts, Bob leverages over two decades of experience in software engineering, application architecture, and team leadership to create engaging, high-impact courses for developers and technology professionals. His instructional style is rooted in practical application, offering insights drawn from his extensive background in industries like medical devices and global technology consulting.
Bob’s expertise spans a variety of technologies and methodologies, including PHP/Laravel, FastAPI, and DevOps, as well as architecture best practices and team dynamics. Whether teaching foundational concepts or advanced strategies, he’s passionate about helping others turn complex challenges into streamlined solutions.
When not crafting elegant code or inspiring the next generation of tech innovators, Bob enjoys exploring the intersection of technology, business strategy, and creative problem-solving.
At TekCasts, Bob leverages over two decades of experience in software engineering, application architecture, and team leadership to create engaging, high-impact courses for developers and technology professionals. His instructional style is rooted in practical application, offering insights drawn from his extensive background in industries like medical devices and global technology consulting.
Bob’s expertise spans a variety of technologies and methodologies, including PHP/Laravel, FastAPI, and DevOps, as well as architecture best practices and team dynamics. Whether teaching foundational concepts or advanced strategies, he’s passionate about helping others turn complex challenges into streamlined solutions.
When not crafting elegant code or inspiring the next generation of tech innovators, Bob enjoys exploring the intersection of technology, business strategy, and creative problem-solving.