here are two examples:
var obj = {}; //
obj.b = function () { //
console.log(1111, this); //b
};
obj.b();
var obj1 = { //
name: "My Object",
c: function () {
console.log(222, this); //object
}
};
obj1.c();
Why is this?