Javascript Scope Tutorial - What Makes Javascript Weird...and Awesome Pt 4

preview_player
Показать описание
Scope and Context are in every language, but because Javascript is always firing callbacks and running asynchronous tasks, it's easy to lose sight of what scope & context you're in.

Scope and context are not the same thing. Scope is variable access - what variables the current piece of code has access to, context is the value of `this` - when you type `this` in your code, what object is it referring to?

This javascript tutorial covers scope and how it plays out in all of the functions that you create.

Watch the full playlist:

#javascript, #javascriptTutorial, #javascriptScope, #webDevelopmentTutorial

-~-~~-~~~-~~-~-
Also watch: "Responsive Design Tutorial - Tips for making web sites look great on any device"
-~-~~-~~~-~~-~-
Рекомендации по теме
Комментарии
Автор

The parent-child explanation was flawless! the best one I have ever heard xD.

Stanelu
Автор

Just laughed out loud for the first time during a coding tut. The parent.child.cookies explination was a stroke of genius. As a father of two, I'll not soon forget scope.

cinderhouse
Автор

The parent/child cookies scope reference really pulled the whole concept together for me!   Got little kids myself.   Thanks for all the videos, they have really helped me understand these key concepts.  Keep it up!

Gfrsh
Автор

OMG that was awesome!! parent/child cookies analogy was spectacular... still laughing..

mikejrog
Автор

2:49 most other languages use block scoping, meaning variables are confined within any set of curly braces. This comes to JS in ES6 with the let keyword.

ramseycdavid
Автор

Super clear, efficient, and concise! Thank you!

govindrai
Автор

Came from the odin project, stayed for the quality explanation, thank you

MrBowmanXD
Автор

i would like to say you are one of the most wonderful instructor i have ever follow .
Thanks for your wonderful and easy explanation.

mohamedserag
Автор

I just realized you have a lot of tutorials. Thanks for awesome one. I'm learning the MEAN stack now. I'm evolving. LOLs.

JasonCtutorials
Автор

Haha, love the cookie comparison for the parent and child! Thank you for the video!

charllabuschagne
Автор

Thank you Man i truly enjoyed your way of explanation on Scope by illustrating good examples about . it was so great!

kavehramzanzad
Автор

This was beautifully explained, I came into this kind of intimidated ever since I've started dabbling with OOP in JavaScript but you made this make a ton more sense for me!

UNKNWN
Автор

finally understood scope...that tutorial nailed it, thanks

gracemwendem
Автор

You show great insight into JS internal workings. Please more on the subject and Thanks!

MrRight
Автор

Very well explained! You are doing a good job. Congratulations!

manuelramos
Автор

Wow! Simply yet ingeniously explained. Thank you

morenikejibello
Автор

OMG, the cookie explanation was hillarious! XD Actually all of the stuff is really well explained so far(3 mins).

noideaofhowcallme
Автор

Man, I have learned a lot, a lot from you. I have watched almost all your videos but that parent-child cookie was funny :-D

MrHangool
Автор

I have replayed over and over again the parent/child analogy; that was so accurate and funny (y) well done sir

besartkuleta
Автор

You are fantastic at explaining these concepts.

deanwrx