Understanding Scope in JavaScript

preview_player
Показать описание
JavaScript scope is an important concept to understand thoroughly in order to pinpoint problems in your code or understand why your code works a certain way. In this video we will walk through a code example in order to better understand JavaScript scope and the scope chain.

For a complete list of all our tutorials:

Take the Learn Modern JavaScript: Getting Started or the Learn Modern JavaScript: Advanced Topics courses at a huge discount:
Рекомендации по теме
Комментарии
Автор

This is perfect. Exactly what I needed to better understand scope. And I really appreciate how slowly and clearly you speak. Makes taking notes and processing information that much easier.

maxk
Автор

I rarely comment on videos. But this this is by far the best explanation I've seen. = Subscribed.

pnewbs
Автор

best explanation such an under rates channel

bilaltariq
Автор

This is the BEST explanation of Scope EVER!! I'm also taking your Udemy courses and I am very pleased!

MauriceLacerda
Автор

I didn't find better than this. Thumbs up for you.

manoharpaswan
Автор

The image is very helpful to understand the scope chain. Thanks a lots!

siyadeveloper
Автор

surely very good teacher, vedios where I learned from him are all well and clearly explained ! step by step, very helpful !

xiaosage
Автор

these all are function expressions, but does scope chain apply to function statements as well?

aryankumar
Автор

Amazing explanation! Thank you a lot!❤

northside
Автор

Thanks. You make yourself very clear and easy understandable. Question about global scope and websites per se. Do the global scope is limited to a web pages where the script or function was called?

julionavas
Автор

Clear crisp explanation, Thank you sir :)

ruchirai
Автор

amazing explanation!! Thank you so much!!!

aleksandramiliuchina
Автор

When you change the last function from console.log to add10(3) you didnt log the value returned but it did log it to the console returning 13 as a result. Why was the last 13 logged to the console without using console.log?

nelsonjimenez
Автор

Where should I start because I noticed that the videos are in some unsorted arrangement ! Why don’t you sort them in one playlist ??? Bit confuse !!!

christopherami