Skip to content

Latest commit

 

History

History
6 lines (4 loc) · 372 Bytes

File metadata and controls

6 lines (4 loc) · 372 Bytes

JavaScript: Best practices

  • event delegation: adding one event listener to a parent, which deals with the instances of whether the click was on a child, instead of an event listener for each child
    • but we still want the event to bubble up the DOM as little as possible