title: JSlint error 'Don't make functions within a loop.' leads to question about Javascript itself
body: <p>I have some code that invokes anonymous functions within a loop, something like this pseudo example:</p>
  
  <pre><code>for (i = 0; i &lt; numCards; i = i + 1) {
      card = $('&lt;div&gt;').bind('isPopulated', function (ev) {
          var card = $(ev.currentTarget);
          ....
  </code></pre>
  
  <p>JSLint reports the error 'Don't make functions within a loop.' I like to keep my code JSLint clean. I know I can move the anonymous function out of the loop and invoke it as a named function. That aside, here's my question:</p>
  
  <p>Would a Javascript interpreter really create an instance of the function per iteration? Or is there really only one function instance "compiled" and the same code is executed repeatedly?  That is, does the JSLint "suggestion" to move the function out of the loop actually affect the efficiency of the code?</p>