Edit in JSFiddle

function f1()
{
   return this;
}
document.write(f1());  //[object Window]