Bind, Call, and Apply explained in JavaScript

preview_player
Показать описание
Wondering how to use bind, call and apply in JavaScript? Wonder no more as we take these three JS concepts and demonstrate how they can be used. Here we take a real world example of making substitutions during a football/soccer game and see how the bind, call, and apply functions can be used. Through this, we will also briefly cover the topic of the 'this' keyword in JavaScript which can often be confusing in its own right. By watching this video you will hopefully have a better understanding of call apply and bind and see how they can be implemented in your code in order to compose and decouple functions from objects.

0:52 This
3:15 Bind
5:20 Call
6:45 Apply

how to use call bind apply in js
how to use bind call apply in js
how to use apply call bind in js
Рекомендации по теме
Комментарии
Автор

Being new to programming, I really only used bind to make shortcuts. These are much easier to understand with your explanation. Thank you!

sweickel
Автор

Great video, using football as an example made it even better 😁. Thanks for the content.

matheusgoncalves
Автор

that was really clear explanation and also meanwhile reflected real-world to make it more understandable

batuhanbayoglu
Автор

Clear info. Thank you for your good work!!!

atnguyenthanh
Автор

Of course he's a Liverpool fan :) Great vid!

dennis_johnson
Автор

great video, great explanation !!! thank you

danieljulien
Автор

clear and direct explanation, really good job, thank you!

patrickvieira
Автор

Thank you! I found this really helpful, even if it was Liverpool related :)

proegged
join shbcf.ru