What is THIS keyword in JavaScript? - Tutorial for beginners

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"

This is episode 6 in a 10 part series I’m calling 10 things javascript developers should know but probably don’t. In this series, we’re going to cover some of the most fundamental and important parts of JavaScript that most of us don’t actually know, and barely touch. 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!

All the code from this series is available here:

0:00:00 Intro
0:00:53 THIS in Global scope
0:01:40 THIS inside functions (methods)
0:16:42 THIS inside Constructor functions
0:20:00 THIS inside callback functions
0:23:40 THIS inside arrow functions
0:24:26 Conclusion
Рекомендации по теме
Комментарии
Автор

JavaScript THIS keyword explained - A deep dive 👨🏻‍💻

ColorCodeio
Автор

Dear YouTube's Algorithm gods, please bless this channel with a million views per episode 🙏🏼😁. This content is absolutely gold. I've been learning JS for the past 2 months and I'm really benefitting from all this knowledge. Thank you so much, and keep up the fantastic work! Cheers from Brazil!

cleanocavalcante
Автор

This is an underrated channel! The explanation is mind blowing not confusing at all, please keep making videos on JS 🙏

darksoulgamer
Автор

'This' video should have at least 100 times more views. Pure gold if you've ever been confused about the intricate applications of 'this' in different contexts. He also covers .bind, .call, .apply as a nice bonus. My favorite video about 'this', simple as 'that'!

atlas
Автор

Style, pace, music, explanation, effects, even typing sound... everything is perfect.

RossieeissoR
Автор

I watched your video on THIS...didn't understand i watched 10 other random videos on Youtube about THIS....did not understand anything. I gave up and went on with my day. The next day your 1 min video on THIS popped up, i watched that, and that was clear as day!!!! I followed up by watching this 24 min video, and everything was so clear!! I don't know if its just the time it took for information to absorb over 24 hours or i re-watched your videos a few times like you said at the end, in order to get it. One thing is for sure, this is the best tutorial on THIS and i am pretty sure i watched them all. Love your teaching style, very good examples and slight humor sprinkled around. Subscribed!

axkongkong
Автор

The most underrated educator on YT. Production quality is also insane. Keep it up man!

digitalfragrant
Автор

This channel is the best when it comes to JS. Honestly it needs more views. Thanks Sina, keep up the fantastic work.

starkxz
Автор

i watched a single video of yours and fell in love with your way of teaching, the background music, the humor everything loved it ..! subscribed

dipankarsahoo
Автор

Always liked creating and designing. Programming is a new journey that I’m taking (haven’t had really good inexpensive sources to learn from)and I’m super glad I found you and I know your videos and courses will guide me finally the right way

Flipping_myFinds
Автор

Excellent explanations on subjects have always been a mystery to me. Thank you for making these tutorials, really insightful and entertaining.. dig your teaching
style. Keep them coming!

salamina_
Автор

Simple, clear and perfect for beginners explanation of 'this' keyword, thanks, man!

myashkov
Автор

Love these videos! You explain concepts really well and in great detail.

asadmoosvi
Автор

This channel and Web Dev Simplified are the most helpful channels for Web Developers. Thank you!

nnex
Автор

You deserve so many more views and subs! This content is gold

nynzxoxo
Автор

This was so well explained with good examples. I probably need to rewatch it to remember everything but I understood it all.

Fred-myer
Автор

this playlist need to be everywhere !
Thank you Sina!

neria
Автор

Please keep going with your videos.
You are really easy to understand and fun to watch.

syedaun
Автор

Just found your channel, you would be a blast to work with! I would be dying all day with your humor

stevecrabtree
Автор

Dude, I really love the way of teach things, Really Awesome !! The hat's off to you.

abhijeetbajpai