const name = "Alice"; const obj = { name: "Bob", getName() { return this.name; } }; console.log(obj.getName.call({ name: "Charlie" }));