Mark As Completed Discussion

Are you sure you're getting this? 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.