Beispiel für Ereignisdelegation in JavaScript

	selector = ".buttonClass";
document.getElementById('buttons').addEventListener('click', event => { // Step 2
      if (event.target.matches(selector)) {
        console.log('Click!');
      }
    })
Javasper