Ever wondered how functions remember their outer scope to execute? How scopes work in Javascript?
In this article, we will look at the core concepts like execution context, lexical environment, scope chaining and closures. These concepts define how J...