Solution Review: Event Bubbling
In this lesson, we will discuss the solution to the quiz in the previous lesson.
We'll cover the following...
Explanation #
Run the code below to see the output:
From the output, you can tell that Option D is the correct answer. Let’s discuss why.
As you can see, every time you click the button, Button is clicked
appears first, followed by Box is clicked
. Why is that? ...