Q. Which method stops event propagation in the DOM?
β
Correct Answer: (A)
stopPropagation()
Explanation: stopPropagation() prevents the event from bubbling up the DOM tree.