I_Jemin

Arrow Function

Showing 1 changed file with 1 additions and 1 deletions
......@@ -2,7 +2,7 @@ const EventEmitter = require('events');
const emitter = new EventEmitter();
// Register a listener
emitter.on('messageLogged', function(arg) { // e, eventArg
emitter.on('messageLogged', (arg) => {
console.log('Listener called',arg);
});
......