The Foo is being executed from the window global object like this:
new Foo(); // false why?
Foo(); // true
function Foo()
{
alert(this == window);
};
But when I run this function Foo code, the alert message says false, why is this when Foo is executed from the global window object?