Javascript Memoization Explanation?
<p>Reading an example from a book, can someone explain how the function call to fibonacci takes in the argument 'i' when the function itself doesn't declare any parameters?</p>

<pre><code>var fibonacci = (function () {
    var memo = [0, 1];
    var fib = function (n) {
        var result = memo[n];
        if (typeof result !== 'number') {
            result = fib(n - 1) + fib(n - 2);
            memo[n] = result;
        }
        return result;
    };
    return fib;
}());

for(var i = 0; i &lt;= 10; i += 1) {
    document.writeln('// ' + i + ': ' + fibonacci(i));
}
</code></pre>
