title: Execute Multiple .js Files From Terminal In Sequence
body: <p>I have about 100 JS files with each having different script.</p>
  <p><code>file1.js , file2.js , file3.js , ... , file100.js</code></p>
  <p>Right now, to execute each file I have to go to my terminal and do this:</p>
  <pre><code>node file1
  node file2
  node file3
  .
  .
  node file100
  </code></pre>
  <p>That means I have to do this 100 times in the terminal. Is there a script to write in a JS file so I can execute ONLY ONE JS file that would execute all the 100 JS files in sequence?</p>
  <p>I also want to give 3 seconds waiting between each execution which I believe I can achieve with the following code:</p>
  <pre><code>var interval = 3000;
  var promise = Promise.resolve();
  
  promise = promise.then(function () {
  
  return new Promise(function (resolve) {
  setTimeout(resolve, interval);
  });
  });
  </code></pre>
  <p>Any suggestion how to execute all the 100 JS files without typing <code>node file#</code> 100 times in the terminal?</p>