javascript function vs. ( function() { ... } ());
<p>I have often see expressions such as:</p>

<pre><code>(function () {
    var x = 1;
    ...
}());
</code></pre>

<p>How do I interpret it? syntactically, this alone is a anonymous function definition.</p>

<pre><code>function() {
...
}
</code></pre>

<p>what the () after that? and why put it in the enclosing ()?</p>

<p>Thanks</p>
