DEV Community

Discussion on: A JavaScript interview question asked at Google

Collapse
 
elisabethgross profile image
elisabethgross

Not the emit function - the event callbacks themself close over the data object and gain access to that themselves!