Regarding approach of writing the jquery code
<p>i got a piece of code from a site where jquery function coded as bit different approach.
here is small piece of code</p>

<pre><code>var bba = {

init: function () {
    this.carousel().slideshow();
    return this;
},

carousel: function () {
    //my code goes here
    return this;
},

slideshow: function () {
    //my code goes here
    return this;
}


};

$(document).ready(function () { bba.init(); });
</code></pre>

<p>can anyone tell me what kind of approach it is ? 
what is the advantage of writing code this way. please discuss in detail. thanks</p>
