title: JavaScript advantage by placing functions inside variables?
body: <p>I have seen recent code examples placing functions inside variables and then calling the functions like normal.</p>
  
  <p>As in:</p>
  
  <pre><code>var myFunctionName = function() {
      Code Here...
  }
  
  myFunctionName();
  </code></pre>
  
  <p>I'm sure there are a lot of advantages with more advanced scenarios, but I'm just curious.</p>