Amazon Interview Question

Write a JavaScript function that notifies the user based on data associated with an element.

Interview Answer

Anonymous

Sep 10, 2018

e.stopPropogation() is the key to this question, since you don't want the event to trigger the parent's event listeners.