The ABCs of JavaScript: apply, bind, and call
by RahulFebruary 6th, 2021 Too Long; Didn't Read
The ABCs of JavaScript: apply, bind, call, and call - the ABC of JavaScript. The ABC of Javascript is called 'A - apply (B) - bind() - call (C) The ABC is used to set what 'this' should refer to, irrespective of how or where the function gets called. We can borrow or use the functionality of the ABCs to efficiently utilize objects. This is known as Function Borrowing, used to efficiently use objects. It can be set to any value in the object which is being passed, such as 'Rahul' or 'greet'