AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
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