Tutorial by Topics: emit

When an event "fires" (which means the same as "publishing an event" or "emitting an event"), each listener will be called synchronously (source), along with any accompanying data that was passed in to emit(), no matter how many arguments you pass in: myDog.on('bark'...

Page 1 of 1