Javascript For loop callback?
<p>Trying to think in Javascript rather than jQuery, so I'm wondering if I'm doing this right.</p>

<p>I want to have a callback when my loop is finished. Is this the proper way?</p>

<pre><code>for(var i = 0; i &lt; divs.length; i++) {

  /* do some stuff */ 

  if ( i === (divs.length - 1)) {  /* call back */  }

}
</code></pre>

<p>I should add that I don't mean something like a JSON request callback, just when the loop has finished. </p>
