JavaScript "this" Keyword Explained
Вставка
- Опубліковано 29 вер 2024
- In this video I'll be explaining in the simplest terms what the "this" keyword is in JavaScript. It's not as hard as many developers may think 🙂
Check out my similar video on the "bind" keyword, here:
• Bind Explained in Java...
For your reference, check this out:
developer.mozi...
💜 Join my Discord Server:
/ discord
Support me on Patreon:
/ dcode
Follow me on Twitter:
@dcodeyt
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
#dcode #javascript
Nice introduction to the "this" keyword/concept. Thanks, Dom.
{2023-06-19}
I found that it will work for function(){}, but if you use ()=>{} the arrow function won't work. Video around 3:20
Who you're kidding man. If you're 50 years old, then I'm Marlin Brando
Oh my god ! You made it so simple and easy to understand something I’ve spent hours trying to understand properly ! Thanks man !
what theme for editor you are using? its simply looks cool
Dcode, can you make a tier list of programming languages or frameworks? Would be interesting to hear your opinion.
LOOL what a good idea. Ok done
Thank you you explained this very well
I'm glad to hear it. I think it's actually a lot simpler than most people think.
Thanks!
Please make more videos explaining this stuff. I must have watched like 7 in which they all explained it in the most confusing way or only within the context of objects. The freecodecamp one was BRUTAL.
Don't understand why you would use "this" simply for readability reasons, given that it can mean different things when used in different circumstances, and it isn't always obvious in which context it is being used. For many years, I have kind of stayed on the server side, because it seemed like Javascript was developed by teens that made it up as they went along. Stuff like "this" makes me think I was right.
Awesome 👍
Thanks 🤗
This video was informative. Thanks again, Dom!
You're welcome, James 🙂
Brilliant, just what I wanted
You're welcome
Hi my friend..thanks for this great video. Do you have some videos about Design Patterns please ?
Speaking about the keyword "this" and the location "this" is S U P E R C O N F U S I N G
We need a better way to speak about the keyword vs the location identifier
Man if i had teacher like you before, i would have doctor's degree in programming already.
5:36 - the most confusing part of JS 'this' keyword - is arrow functions
Please make a video about idempotent, and other concepts like this
Thanks .. i understood it well now. Thanks again
Thanks for keeping it so simple.
thanks!
Great explanation!
Love it
The part with event listeners is exactly what i was looking for and didnt find in any other tutorial. Now i got it. Thanks.
Glad to hear mate
The only video on UA-cam that actually did explain what "this" is. Thank You!
Glad it helped you!
I bet , You'll forget this after this video. this is the nature of this
wow dude I finally understand!!
Mate I'm happy to hear that
How do you know a programming language is broken? It takes almost 8 minutes to describe the meaning of one word.
Dom you cover php??
Not entirely, but I have used it in previous videos