JavaScript

Event delegation

One listener on a parent handling events from many children via bubbling.

Why interviewers ask about it

Two wins: far fewer listeners, and it works for elements added after the listener was attached. Pair it with event.target.closest().

This term is part of the free Python Full-Stack interview preparation module - browse the full glossary for every definition.