JavaScript Tutorial For Beginners #29 - THIS Keyword

preview_player
Показать описание
Hey all, in this JavaScript tutorial for beginners, I want to introduce you to the THIS keyword, so... Ninjas, meet the THIS keyword. THIS, meet the ninjas :). Anyway, THIS in JavaScript is a very useful tool, and refers to whatever object currently owns the context you are working in.

For example, at the root of your document, the Window object owns it, so THIS represents the Window object. Therefore, we can call any property on THIS (within the Window context) as we can on the Window object itself.

Any questions, just ask!

========== JavaScript for Beginners Playlist ==========

========== CSS for Beginners Playlist ==========

========== HTML for Beginners Playlist ==========

========== The Net Ninja ============

========== Social Links ==========

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

After watching I must say that this is the first time I've truly understood how "this" works in JavaScript.

Sagiv
Автор

DUDE, you have a gift.. of teaching, I hae been trying to understand the concept of 'this' for days now, and I watch your 5 MIN video and i GOT IT. This is why I love youtube, I am thankful for videos like this and person like you :)

HDTrailerZ
Автор

I have read like five different info sources and nothing. But your 5 min video and I understood everything. It's not just about "this" word. It's about the entire JS course. Big thanks for your hard work and keep doing teaching. Its definitely a calling :)

WakawooUA
Автор

I feel like I found a hidden gem of YouTube discovering your channel! Don't ever stop!

skandahle
Автор

after watching this understood "this" keyword. THANKS keep posting I will keep sharing

ashwiniabhishek
Автор

Thanks a lot for what you've been doing, man. I'm terrible at understanding the academic language used in most books on JS, so your straightforward explanations have been of great help for me.

theonethatprotectsyoufromt
Автор

Holy crap thank you for the explanation. I could not wrap my head around the "this" keyword, but now it makes 100% since. You are amazing.

MrT
Автор

After reading documentation and watching other YouTubers try to explain this, YOU are the one that made it crystal clear. Thank you!

simranthiara
Автор

I am taking Udacity's Front End Developer Nanodegree and you just explained the "this" keyword better than their 19 part series in 5 minutes, thank you.

eliasroman
Автор

I concur with many other commenters here, Shaun. You've done a great job generally with JS and the video here on the "this" keyword is among your very best efforts on our behalf. I truly hope you are finding ways to monetize your channel. You should be rewarded financially, in my estimation, for these wonderfully helpful tutorials.

christianarmywrench
Автор

I got many people to explain about "this" function, well i already know this by now after a long time of digging but... the way you explain "this" is the best way, why wouldn't i watched this first!

SunilparajuliKenshin
Автор

Finally someone was able to clear 'this' keyword concept!
Your playlists are great for learning. Thanks for the video

MohammadAhadX
Автор

This video has cleared my confusion on what really "This" keyword is.
Thank YOU so much.

BachonKiDuniya
Автор

You are an incredible teacher. Also the first time I have understood "this". Subscribed!

kimberlyburns
Автор

Thankyou!!

seriously, why can't all tutorials be this simple to understand. Sometimes the way it is explained and the examples used are what makes all the difference in understanding such abstract concepts.

richardc.
Автор

wow i am very glad that i found your channel at very early stage of my coding life thanks ninja

roasted_boy
Автор

I don't usually comment but this tutorial was so clear!  Thank you so much!

FunnyGuyRy
Автор

I'm in a $15k coding program and they bypassed teaching us 'this' (yet it's required for assignments). This made my day!

Stephanie-znjt
Автор

you are a ninja indeed, i'm impressed with all your tutorials... thanks dude

murunwascengy
Автор

Holy crap! Thank you! I watched about an hour worth of videos on this and got nowhere....5 mins of your vid and I got it. Very much appreciated!

sledge
visit shbcf.ru