4min chapter

Syntax - Tasty Web Development Treats cover image

Potluck × Twitter Following × TypeScript × Playwright

Syntax - Tasty Web Development Treats

CHAPTER

JavaScript 30 Course - Using Capture in Event Listeners

The capture argument in event listeners is has to do with event bubbling. What happens with an event is when you click on something, the event will bubble up. Instead of them bubbling up, they capture down. So if you ever need to listen for a an event on multiple items and you need to listen on the item higher first before you stop it from going down,. I have a pretty good video on my JavaScript 30 course on how capture works or you capture down instead of bubbling up. Let's move into some sick pics. This is very fun. It's a switch cover, a screwless decor, a wall plate for electrical outlet covers. These things are ugly. They

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode