Hint
Method calls: this = the object before the final dot at the call site.
const obj = {
name: 'Alice',
greet() { return 'Hello, ' + this.name; },
};
console.log(obj.greet());Hello, Alice
Explanation: When called as obj.greet(), this is set to obj — the object to the left of the dot.
Key Insight: Method calls: this = the object before the final dot at the call site.