title: Return the concatenation of callbacks result called within a loop
body: <p>My data is in MongoDB. I am trying to update the score when initiated.
  However, I need to make several queries depending upon loop.</p>
  
  <p>At the end I would like to get the concatenated results of all the callbacks and then call a function with this concatenation result.</p>
  
  <pre><code>function getCurrentScore() {
      var teamScores = "";
      (function(){
          for(var i=0 ; i&lt; teams.length; i++) {
          (function(i){
              PingVoteModel.count({"votedTo": "TEAM"+(i+1)}, function( err, count)
                  {
                teamScores += "&lt;Team" + (i+1) + "&gt; " + count + "\t";
              });
              }(i));
          }
      }());
      return teamScores;
  }
  </code></pre>
  
  <p>How can I get concatenated teamScore ?</p>