Why too much recursion
<p>I'm trying to understand why in this case there is too much recursion. I didn't use any loop.</p>

<pre><code>function a(param1, param2) {

    function b(input1) {
        return input1 * 2;
    };

    function c(input2) {
        return input2 * 2;
    };    

    return a(param1) + b(param2);
};

document.write(a(1, 2));
</code></pre>
