Very good explanation with easy to understand examples. It's always funny to wrap my head around execution context, this and when I need to use the .bind() method.
5:34 what is the reason to add the method instead of putting the in the body of the function? Does running an empty function with the 'new' word in front of it create an object literal?
out of curiousity, what drives you to invest resources (time, human effort etc) to create these materials and publish them? The quality of the content is so good even compared to paid ones
It started as a resource for my students and then grew as I saw how many more people I could actually help. I like hearing success stories from my subscribers. And I make a few dollars through advertising.
It has to do with closures and the changing meaning of `this` in JS depending the execution context ruclips.net/video/uBdH0iB1VDM/видео.html ruclips.net/video/eWDXgsIgTGk/видео.html
Jesus! Finally I got it why do we lose the execution context and This = window when we write ( obj.method, 1000 ) inside a timer. Thank you very much!
Very good explanation with easy to understand examples. It's always funny to wrap my head around execution context, this and when I need to use the .bind() method.
Thank you! Very very clear explanation. I finally start to understand concept of execution context and how to configure it in different cases.
Thanks!
Thank you very much!
Such an amazing video!
Thx. Very helpful.
5:34 what is the reason to add the method instead of putting the in the body of the function? Does running an empty function with the 'new' word in front of it create an object literal?
yes.
function x {
//empty function
};
x(); //returns undefined.
new x(); //returns { }
ruclips.net/video/UrM9xgPxq1E/видео.html
out of curiousity, what drives you to invest resources (time, human effort etc) to create these materials and publish them? The quality of the content is so good even compared to paid ones
It started as a resource for my students and then grew as I saw how many more people I could actually help.
I like hearing success stories from my subscribers.
And I make a few dollars through advertising.
I still use it as a resource for my own students.
What I am actually teaching in class is a huge driver for what videos I make next.
hi, I have seen .bind(this), what is the point of doing this? it was like foreach(function(){ //some code }.bind(this)); can you please help me
It has to do with closures and the changing meaning of `this` in JS depending the execution context
ruclips.net/video/uBdH0iB1VDM/видео.html
ruclips.net/video/eWDXgsIgTGk/видео.html
How to remove black space from video html css javascript
What?
@@SteveGriffith-Prof3ssorSt3v3 extra space above and below in videoplayer video width 100% and height 100% how to video size fill height 100%
@@viral_agent0 that has nothing to do with the topic of this video