confusing behavior of instanceof operator in javascript
<p>Take a look at this code:</p>

<pre><code>function Foo () {
    console.log(this instanceof Foo);
    return { name: "nitesh" }; 
}

foo = new Foo(); //true 
console.log(foo instanceof Foo) //false
</code></pre>

<ol>
<li>Why is <code>foo</code> not an instance of <code>Foo</code>?</li>
<li>Why is <code>this</code> an instance of <code>Foo</code>?</li>
</ol>
