Sign In
Curriculum
Log Event Type
Mark as Completed
Log Event Type
Write a function called
logEventType
that adds a click event listener to a given element and logs the type property of the event object to the console when the button is clicked.
Click to go back
Click to go forward
Refresh preview
Console
Submit
Solution
00:00
Previous Lesson
Next Lesson