What is the advantage of assigning a function to a var?
<p>Given this Javascript example I found </p>

<pre><code>var sum = function() {
  var i, sum = 0;
  for(i = 0; i &lt; arguments.length; i += 1) {
    sum += arguments[i];
  }
  return sum;
};
</code></pre>

<p>What advantage is there in assigning a function to a var?</p>
