<p>There are two popular closure styles in javascript. The first I call <em>anonymous constructor</em>:</p>

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

<p>and the <em>inline executed function</em>:</p>

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

<p>are there differences in behaviour between those two? Is one "better" over the other?</p>

@Lance: the first one is also executing. Compare it with a named constructor:
```
```
function Blah() {
    alert('blah');
}
new Bla();
```
```
this is actually also executing code. The same goes for the anonymous constructor...
But that was not the question ;-)