Which is the method used to add an event listener?
Which is the method used to add an event listener? Correct Answer addEventListener()
The addEventListener() method attaches an event handler to the specified element. The addEventListener() method is used to add an event listener to the script.