Loading homepage
Input: function greet(name) { return this.prefix + name; } greet.myCall({ prefix: 'Hi ' }, 'Ada') Output: 'Hi Ada'
Input: function total(a, b) { return this.base + a + b; } total.myCall({ base: 10 }, 2, 3) Output: 15
Input: function receiver() { return this; } const context = {}; receiver.myCall(context) === context Output: true
Implement myCall on Function.prototype to invoke a function with a chosen object receiver and arguments supplied individually.