Vote count:
0
What is the difference between
var events = require('events'),
emitter = new events.EventEmitter();
and
var emitter = require('events').EventEmitter;
or EventEmitter
is pretty forgiving in using/not using new
and ()
?
asked 40 secs ago
using `new` and `()` with require
Aucun commentaire:
Enregistrer un commentaire