How to use both JavaScript .apply and .call functions
In JavaScript a function or method is automatically assigned a member function, an example is the .toString() function which returns a string representation of the method. Both .call and .apply functions are member functions of the Function prototype. Below I’ll show the uses of both functions and hopefully explain how they work in the process.
OBJECT INHERITANCE
In this example, I’ll be creating a parent and child notation object. The parent contains a function…