JavaScript Tutorial

Event-Driven Programming

Programming paradigm where program flow is determined by events or messages.

document.getElementById('button').addEventListener('click', () => {
  console.log('Button clicked');
});