How to Call This Anonymous Javascript Function?
<pre><code> var avg = function() 
   {
     var sum = 0;
      for (var i = 0, j = arguments.length; i &lt; j; i++) 
        {

           sum += arguments[i];
         }
      return sum / arguments.length;
   }
</code></pre>

<p>When I try to call this like:</p>

<pre><code>var average = avg(2,3,5);
average; // It works fine;
</code></pre>

<p>But how do I call it without assigning to a variable?
If anybody can give any suggestion it will be delightful..Thanks.</p>
