title: Force the order of the loop execution nodejs
body: <pre><code>names = ["jack", "matt", "lisa", "jacob"];
  names.forEach(function(name) {
      getID(name);
  });
  </code></pre>
  
  <p>The loop gets executed in random order. How to force to execute them in the order: </p>
  
  <ol>
  <li>names[0]</li>
  <li>names[1]</li>
  <li>names[2]</li>
  <li>names[3]</li>
  </ol>