JavaScript 'THIS' keyword in 1 Minute #shorts

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

What is the THIS keyword in JavaScript? How does it work and why is it so confusing?

The THIS keyword, from the series "10 Things JS Developers Should Know"

Today, for episode 6, we’re talking about the THIS keyword, how context and execution logic changes the value of the 'this' keyword, and how arrow functions affect the value? Episode 6: The THIS keyword. Let’s go!
Рекомендации по теме
Комментарии
Автор

Screw this I'm going back to C#

What do you mean this is undefined?!?!

AvenDonn
Автор

These short videos are amazing! Thank you for sharing your knowledge with us.

edualfred
Автор

Not the full explanation but what u could explain in that short amount of time with such clarity is impressive.

federicobau
Автор

Its like an Achievement when you completely starts getting this keyword

vikashtiwari
Автор

In JavaScript everything is by reference useful explanation in this short. Thanks

VipulAnand
Автор

That was soo cool!
Thank you sina :))

HamiddNasr
Автор

Brother trust me, this is the best content on YouTube. No one goes that deep on YouTube as you did in most of your videos

hamadsherazi
Автор

Dude. Your way of presentation is soo simple. ❤ thanks

one.mr.benjamin
Автор

man, your way of explaining is amazing.👍

harshithvenkat
Автор

Este canal es completamente increíble 😼

sach
Автор

Wow, that's a blast from the past.

sobanya_
Автор

Can you make a shorts for css rid explanation sir ?

udhayakumarr
Автор

According Mozilla's docs this is for me the correct way to implementing OOP properly. If you don't code OOP like it suppose to be, this keyword could be a headache... as a C++ programmer i like this in JS. I learned that by hard way uwu

Uri.Sab.
Автор

TIL: Steve Woodmore. I'll leave "this" for another day...🤣 Thank you Sina! You always bring a smile to our faces, no matter the topic. Have you considered Stand up JavaScript comedy?

kostas_x
Автор

If people started coding with Java, they would have no problem understanding JS this

nandomax
Автор

Ok explanation, a little confusing even though it's a simple concept, though very important to go over.

ildaphonse
Автор

Just to say that in modules or if you are using II(A)FE the keyword this will be undefined

hadawardgz
Автор

I understood what it meant when I heard it's basically self

Krazy
Автор

Wow, I didn't know you could arbituarily set the value of `this` with `.call(val)`. Also, what does `this` outside of a function return when JS isn't being run in a browser (i.e node js)?

TMinusRecords
Автор

"this" is the object of which the function is a property of.

azhar