why does inline instance creation behave different?
<p>Consider this code:</p>

<pre><code>function Foo() {
}

Foo.prototype.alert = function() {
    alert(this);
}

(new Foo()).alert();
</code></pre>

<p>When executed (in jsfiddle), the alert shows that 'this' is the window object. Changing the last line to :</p>

<pre><code>var foo = new Foo();
foo.alert();
</code></pre>

<p>works as expected. </p>

<p>Why is the difference?</p>
