$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · medium · #181

Fill in the blank

// stop the event reaching the parent
child.addEventListener('click', (e) => {
  e.____();
});

Answer: stopPropagation (also accepted: stopPropagation, stopPropagation())

stopPropagation() keeps the event from bubbling up.
Play Problem Solving ▸