title: JavaScript: inline functions vs predefined functions
body: <p>Can any body throw me some arguments for using <em>inline functions</em> against passing <em>predefined function</em> name to some handler. </p>
  
  <p>I.e. which is better:</p>
  
  <pre><code>(function() {
    setTimeout(function() { /*some code here*/ }, 5);
  })();
  </code></pre>
  
  <p>versus</p>
  
  <pre><code>(function() {
    function invokeMe() {
      /*code*/
    }
    setTimeout(invokeMe, 5);
  })();
  </code></pre>
  
  <p><br>
  Strange question, but we are almost fighting in the team about this.</p>