Consider the following situation
in which we want the event added to
a specific HTML element to be triggered.
We can observe that the event
on the button element is triggered.
However, the event on the div
element is not triggered.
This is because we have used
event.stopPropagation()
on the
handleButtonEvent()
function
which is an event listener for
the button element.
This stops the event from propagating
further to the div element.