Fill in the blank
// stop the event reaching the parent
child.addEventListener('click', (e) => {
e.____();
});
Answer: stopPropagation
stopPropagation() keeps the event from bubbling up.
Play Problem Solving ▸
// stop the event reaching the parent
child.addEventListener('click', (e) => {
e.____();
});
Answer: stopPropagation