Duration: 17:03 min
Summary: In this lesson, we will complete our discussion on scope. I will explore other examples that show the variables with global scope and those with function scope. Then, I will show you that declaring a variables within a block (using one {}) is not considered a function scope (in other words, the variable is still considered to be on the global scope). Then I will move to an important concept called closure. We will see how the inner function (the function within the function) still has access to the outer function variables even when the outer function has completed. I will discuss this concept with 2 examples.