JavaScript: Add an event listener to a target with dashes ( – )
MDN describes the addEventListener() method as a function that will be called whenever the specified event is delivered to the target. In order for the code to work, you need to access the target. Common targets are Element, Document, Window,…