Mark As Completed Discussion

Understanding the scope of execution

Before we dive deep into closures it is important to understand the scope of execution of a program. Imagine you have a program with 10-20 lines of code without any functions. Just a few lines of code, plain and simple. In this scenario, we just have one single scope of execution, and that is the global scope.