What is the modern method for adding event listeners to DOM elements?
addEventListener is the modern, standard method for attaching event listeners to DOM elements. It offers several advantages: multiple listeners can be added for the same event, more control over event propagation (capturing/bubbling), and the ability to remove specific listeners. The syntax is element.addEventListener(eventType, handler, options/useCapture), where options can specify behavior like once, passive, or capture.