Return an object from an object method in javascript
<pre><code>A = {
    f1: function() {
        return {
            a: function(){ alert('sss'); }
        }
    }
}

A.f1().a();
</code></pre>

<p>Why is it used in this way?</p>

<p>Why is the method <code>a()</code> bound to A.f1()?</p>
