title: Asynchronous for cycle in JavaScript
body: <p>I need a loop that waits for an async call before continuing. Something like:</p>
  
  <pre><code>for ( /* ... */ ) {
  
    someFunction(param1, praram2, function(result) {
  
      // Okay, for cycle could continue
  
    })
  
  }
  
  alert("For cycle ended");
  </code></pre>
  
  <p>How could I do this? Do you have any ideas?</p>