Function scope and closures -JavaScript

Lets first understand the lexical scope to understand the concept of function scope and closures in javascript In the context of programming and scope, the term “lexical” refers to the concept of how the scope of variables is determined based on the physical structure (the lexical structure) of the code. Lexical scope, also known as […]

Function scope and closures -JavaScript Read More »