this Keyword in Different Contexts
What's the difference between these calls?
const o = {
prop: 37,
f: function() {
return this.prop;
}
};
console.log(o.f());
console.log((1, o.f)());
const o = {
prop: 37,
f: function() {
return this.prop;
}
};
console.log(o.f());
console.log((1, o.f)());