Function defined in global scope
Becomes property of global object
by Mahesha999
JavaScript
function f()
{
return this;
}
document.write(window.f()); //[object Window]
by Mahesha999
function f()
{
return this;
}
document.write(window.f()); //[object Window]