paint-brush
The ABCs of JavaScript: apply, bind, and callby@rahull
853 reads
853 reads

The ABCs of JavaScript: apply, bind, and call

by RahulFebruary 6th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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'
featured image - The ABCs of JavaScript: apply, bind, and call
Rahul HackerNoon profile picture
Rahul

Rahul

@rahull

L O A D I N G
. . . comments & more!

About Author

Rahul HackerNoon profile picture
Rahul@rahull

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite