Will the following code return the same result? I can't really understand this keyword.
var o = {
prop: 37,
f: function () {
return this.prop;
}
};
console.log(o.f()); // logs 37
var A = {
prop: 37,
f: function () {
return A.prop;
}
};
console.log(o.f()); // logs 37