Basic Flow Control in JavaScript
<p>Could you, please, explain to me, how to write really basic flow control in JavaScript? Thank you.</p>

<pre><code>flow([

  function(callback) { /* do something */ callback(); /* run next function */ },
  function(callback) { /* do something */ callback(); /* run next function */ },
  function(callback) { /* do something */ callback(); /* run next function */ },
  function(callback) { /* do something */ callback();  }

], function() {

  alert("Done.");

});
</code></pre>
