title: Nodejs: creating EventEmitter object
body: <p>I am new to nodejs. I came across these two ways as follow for instantiating <code>EventEmitter</code> class as follows - </p>
  
  <pre><code>const events = require('events');
  
  const e = new events.EventEmitter();
  const e1 = new events();
  
  console.log(e)
  console.log(e1)
  </code></pre>
  
  <p>How come both <code>e</code> and <code>e1</code> are instantiated from <code>EventEmitter</code>? Which is the right way? Am I m missing anything here?</p>