01 / 03
100 rows, 100 listeners?
In chapter 1 you wrote addEventListener every time you made an li. Five rows, five listeners. What about a hundred?
There is a simpler way. Put one listener on the parent (#list) and figure out which row was pressed. This is called event delegation.