function foo (){ console.log(this.a) } var obj = { a:1, foo } console.log(obj.foo()) var b = obj.foo; console.log(b() === window.b())
asd