2754. Bind Function to Context
Hints
Hint 1
The easiest way to solve this is to use the built-in fn.apply() method.
Hint 2
Without built-in methods, you need to figure out a way to call the function (this) from context object. That will associate "this" appropriately.
Hint 3
You can create a new Symbol(). Attach the symbol to the context object and set the method to be "this". Then call the method on the symbol.
Preparing judge…