Exploring 📖 books, 💻tech, and 🎮cozy games
Building & sharing along the way
That’s because of *event bubbling*: events fire from the deepest target (child) and travel upward to the parent.
Clicking the button triggers both logs -> child first, then parent.
#JavaScript #WebDev
That’s because of *event bubbling*: events fire from the deepest target (child) and travel upward to the parent.
Clicking the button triggers both logs -> child first, then parent.
#JavaScript #WebDev