var name="window object"; var object={ name:"my object", getName:function(){ console.log(this.name); } } object.getName(); // "my object" (object.getName=object.getName)(); // "window object"