JavaScript call(), bind() and apply()

preview_player
Показать описание
We have learned about the ‘this’ keyword in detail in earlier chapters of this course. If you remember, we learned that:
 The ‘this’ keyword always refers to an object.
 If a method is called on an object, then ‘this’ refers to that object.
 If a regular method call is made, ‘this‘ refers to the global object. Global object in case of browser is window object.

The javascript call(), bind() and apply() method helps us to set the value for this keyword.
Рекомендации по теме
Комментарии
Автор

This channel is underrated. Highly recommend this content

akshaybailkeri
Автор

Wow... Thanks for this great content.. Clear explanation 🔥🔥

sona
Автор

Also mention some scenarios for its application

ashimbera
Автор

Where is this concept used in Angular ?

ashimbera
Автор

Can you explain multiple for loops i.e nested for loop and where & how to use it?
if possible?

rahman-thecomputerguy