JavaScript this Keyword Explained Simply

preview_player
Показать описание


📚Materials/References:

🌎 Find Me Here:

Рекомендации по теме
Комментарии
Автор

Seriously great explanation! Came here for more clarification on it after The Odin Project lesson Objects and Object Constructors

andyryan
Автор

'This' references to the object that calling the function.
This simple sentence cleared my mind after reading a lot of stuff about 'this'. Your explanation is amazing!!

gameXIII
Автор

Amazing explanation, much more concise than articles I've read.

hblkbqz
Автор

Bro, that arrow function confused me while reading an article T - T. Thanks man!

soIatido
Автор

Appreciate all your useful vids. They've substantially benefited me in the first couple months I started out.

kobudnik
Автор

I've been struggling to fully comprehend this; your video really helped me out. Looking forward to checking out more of your vids ;)

xmvemrp
Автор

Thanks a lot. One of the clearest explanations of `this`. 🔥

ArunaTebel
Автор

Finally someone that doesn't speak overly fast

michi
Автор

i really want to say thank you because your simple explanation made me get it finally

onagichitchat
Автор

Very clean explanation, thanks for that!

flibben
Автор

best tutorial on "this" subject

shivamthemas
Автор

So, could we say that using inline functions with the `this` keyword is discouraged (bad practice) since it would require it being nested within a normal function?

Meaning that instead of using an inline and nesting it, It's better to simply just use a normal function? Please correct me if I am mistaken! :)

newredroses
Автор

I subscribed because i was able to understand "this"

KennehGebra-cfds
Автор

I am okey with this topic but, i have a question. When i use this keyword on a object literal like 'fullName : this' it says it is a global object and this kind of little things confuses me. Thank you.

FurkanKARADENIZ-ttzf
Автор

9:53 Could you just use an arrow function with the forEach method/function to solve the "this" problem?

GrantH
Автор

Is it possible to import any module without writing the module type and export it

a-mok-youb
Автор

on forEach (8:02) when this refers to window object why dont we use arrow function for ex: ( console.log( this.firstName )} ));

aloktomar