What is the event.target when clicking the button?
<div onclick="console.log('first div')">
<div onclick="console.log('second div')">
<button onclick="console.log('button')">
Click!
</button>
</div>
</div>You missed this one before
The deepest nested element that caused the event is the target of the event. You can stop bubbling by event.stopPropagation
Question 31 · see the original (opens in a new tab)
or press Enter