Why doesn't my JavaScript Code work?
<p>wrote a simple function to calculate average of any set of numbers. Problem is it wont show any output on my webpage when I click the refresh button.</p>

<p>code:</p>

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

document.write(avg(3,2));
</code></pre>
