var Obj = { foo1: function(){ alert(this); //object }, foo2: () => { alert(this); //window } } Obj.foo1(); Obj.foo2();