title: JavaScript - Instantiate from require
body: <p>I have a Node program. This program is importing some code. That code looks like the following:</p>
  
  <p><strong>sample.js</strong></p>
  
  <pre><code>function SampleModel() {
    this.name = 'Test';
  }
  module.exports = SampleModel;
  </code></pre>
  
  <p>I am using <code>SampleModel</code> in another file. Currently, I am successfully using it like this:</p>
  
  <p><strong>another.js</strong></p>
  
  <pre><code>var SampleModel = require('./sampleModel');
  var model = new SampleModel();
  </code></pre>
  
  <p>For the purpose of education, is there a way to condense these two lines down to a single line of JavaScript? If so, how?</p>
  
  <p>Thank you!</p>