javascript anonymous function
<pre><code>function (){
    alert('a function');
}
</code></pre>

<p>when i put it on the firebug javascript control. it shows <strong>function statement requires a name</strong></p>

<pre><code>(function (){
    alert('a function');
}())
</code></pre>

<p>when i put the above it shows ok.</p>

<pre><code>function (){
    alert('a function');
}()
</code></pre>

<p>it also shows  <strong>function statement requires a name</strong> and doesn't execute the function. why?</p>
