VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » freeCodeCamp.org
THIS keyword - Beau teaches JavaScript

THIS keyword - Beau teaches JavaScript

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
The 'this' keyword refers to the object that owns the JavaScript code. - Code: http://codepen.io/beaucarnes/pen/GWPOZp?editors=0012 - Resources: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this https://codepen.io/somethingkindawierd/post/es6-arrow-functions-this - Beau Carnes on
Date: 2022-03-14

Comments and reviews: 10


I think this video misses structure as well as the point: Why?
How -this- is interpreted depends on when it gets -resolved- so to speak.
If you would have explained why it gets when resolved, one wouldnt need to store all this empty knowledge in his/her brain but rather would understand the underlying concept, which is less amout of data and way more powerful.

reply

great stuff
beau just a question - I read that if you have a method within an object and inside that object you've got 2 functions, the second function will lose the this context and will refer to the global object (the var that = this shtick)

reply

I really would like to grasp these concepts, but it seems as though JavaScript is some sort of 'bottomless pit' of information that cannot be explained in a simplistic terminology. Thereby leaving a beginner unsure about what one learns.
reply

When Beau says 'Created' about O (When talking about arrow functions around minute 7), does created mean when it is first called ?
Intuatively, I would have thought, it was created in the O object.

reply

I understood because I read the book You Don't Know Javascript, but I think you should slow down a bit for newer people, otherwise I found it well made, really love this series you're doing.
reply

Many thanks for this serious video about the subject far away from the -hello world- ones , one should be concentrated , stop and replay to get the best of the video , thank you again
reply

Yes it was fast, but there is a pause button for that. Thanks for explaining THIS in its various contexts. It's not the definite guidebook, but it was very helpful to me!!!
reply

If you listen very carefully, the first 14 seconds explain a lot! - The value of 'this' when used in a function, is the object that owns the function-
reply

you haven't answered the main question: Why TF do we need -this- in the first place? It does absolutely nothing. Is it some sort of inside joke?
reply

Bad way to teach.
I had to stop the video halfway to avoid complications.
Slow down and put the learner in mind next time.

reply
Add a review, comment






Other channel videos