Mark As Completed Discussion

Try this exercise. Fill in the missing part by typing it in.

To attach an event listener to an element, you can use the addEventListener ____. This method takes two arguments: the type of event to listen for and the function that should be executed when the event occurs.

Write the missing line below.