back to the lesson

Hide messages with delegation

importance: 5

There’s a list of messages with removal buttons [x]. Make the buttons work.

Like this:

P.S. Should be only one event listener on the container, use event delegation.

Open a sandbox for the task.