Read full article on the Infragistics Blog
- Global Scope
- Function or local scope
- Lexical scope
I have written in details about scoping here, but let’s take a brief walkthrough of scoping before getting into closures.
As soon as we create a variable, it is in a Global Scope. So, if we have created a variable which is not inside any function, it is in a global scope.
Leave a Reply