Three squared coloured boxes

Day 25: Event Capture, Propagation, Bubbling and Once

This challenge was to go a bit more in depth of the event listener method.

What Did I Learn?

The event Listener method includes an options object which includes once. This will listen for an event once and then unbind itself so there's no future clicks on it.

Interested in participating in #JavaScript30?

Register here and learn at your own speed.