Closed a-eid closed 3 years ago
that second example ( I think ) on chapter 2
var bFun = function(){ return this} var b = {name : 'b' , fun : bFun } b.fun(); // returns b not the global window object .
var bFun = function(){ return this} var b = {name : 'b' , fun : bFun }
b.fun(); // returns b not the global window object .
that second example ( I think ) on chapter 2