Self Executing function doesnt work?
<p>I have the code : </p>

<pre><code>function (i)
{
    alert(i);
}(3);
</code></pre>

<p>I don't understand why I don't see the alert. </p>

<p>What does this syntax mean? </p>

<p>And why this code: </p>

<pre><code>( function (i)
{
    alert(i);
}(3))();         
</code></pre>

<p>Does work?</p>

<p><strong>What is the difference?</strong></p>

<p>What Am I Missing?</p>
