Toggle navigation
Toggle navigation
This project
Loading...
Sign in
I_Jemin
/
Node-Study
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
I_Jemin
2018-03-22 00:01:34 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e4aa6aab006b4098d14fe6d5d5c5070244d3cce6
e4aa6aab
1 parent
69e2f347
Arrow Function
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
app.js
app.js
View file @
e4aa6aa
...
...
@@ -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
);
});
...
...
Please
register
or
login
to post a comment