What is 'this' in JavaScript + understand call() bind() apply()
JavaScript Ricochet
0:00 / 0:00
What is 'this' in JavaScript + understand call() bind() apply()
203 просмотра · 3 года назад
JavaScript Ricochet
561 подписчик
203 просмотра · 3 года назад
The 'this' keyword is really tricky in JavaScript. That's why you need to be able to know what is 'this' AND how to change it depending on what you're trying to do.
Chapters:
0:00 'this' when you don't decide to explicitly set it
1:01 Using call() to set 'this' to a specific object
2:01 Setting this and passing an argument to the called function
3:45 Passing several arguments using call() or apply()
6:07 Using bind() to create a function that wraps another function
#learnprogramming #juniordeveloper #learnjavascript
Improve in HTML, CSS and JavaScript by subscribing to our newsletter:
https://codeconcept.ck.page/28d6110032