js 'function' structure
<p>I applogoize for this stupid question, please correct me, or reference if there is a duplicate for my question but, I want to know what are the advantages of using this function:</p>

<pre><code>var MyFun = (function(data){
alert(data)
});
</code></pre>

<p>rather than this:</p>

<pre><code>function MyFun(data){
alert(data);
}
</code></pre>

<p>As I understood, it's having overloading concept, am I right on that?</p>

<p>thank you.</p>
