title: Node.js short syntax or mistake: Class = new(require(‘./class.js’))();
body: <p>why not 1 line 1 var:</p>
  
  <pre><code>var Class = new(require(‘./class.js’))();
  </code></pre>
  
  <p>instead common way of 2 lines and 2 vars:</p>
  
  <pre><code>var Class = require(‘./class.js’);
  var object = new Class();
  </code></pre>