* blank spaces removed in existing files * Added content to javascript this keyword * Update content/roadmaps/106-javascript/content/111-javascript-this-keyword/100-function-borrowing.md * Update content/roadmaps/106-javascript/content/111-javascript-this-keyword/100-function-borrowing.md * Update content/roadmaps/106-javascript/content/111-javascript-this-keyword/100-function-borrowing.md * Update content/roadmaps/106-javascript/content/111-javascript-this-keyword/102-this-in-a-function.md * Update content/roadmaps/106-javascript/content/111-javascript-this-keyword/103-using-this-alone.md * Update content/roadmaps/106-javascript/content/111-javascript-this-keyword/104-this-in-event-handlers.md * Update content/roadmaps/106-javascript/content/111-javascript-this-keyword/105-this-in-arrow-functions.md Co-authored-by: Kamran Ahmed <kamranahmed.se@gmail.com>
556 B
556 B
Function Borrowing
Function borrowing allows us to use the methods of one object on a different object without having to make a copy of that method and maintain it in two separate places. It is accomplished through the use of .call(), .apply(), or .bind(), all of which exist to explicitly set this on the method we are borrowing.
Free Content Function borrowing