DEV Community

Discussion on: Event delegation in JavaScript

Collapse
 
jay97 profile image
Jamal Al

Hey Alex nice vedio. In the video i saw the u were trying to get the event.target like this el.addEventListner("click", console.log(event.target))
But did not work. To make it work just pass {target} to console without event.