Loading problem…
The Function.prototype.call() method invokes a function immediately with a specified this value and arguments passed individually.
Implement your own Function.prototype.call without using the native call, apply, or bind methods. To avoid overriding the built-in method, implement it as Function.prototype.myCall.
function greet(greeting) {
return `${greeting}, ${this.name}`;
}
const user = { name: "Alice" };
greet.myCall(user, "Hello"); // "Hello, Alice"