What is 'this' in JavaScript + understand call() bind() apply()

preview_player
Показать описание
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:
Рекомендации по теме
Комментарии
Автор

"This" really helped a lot. Using things like call, apply and bind could be a bit confusing at the beginning. Thanks for the explanation

jonathanjohnson
welcome to shbcf.ru