In this part we will discuss the following topics,
- Scopes in functions
- Nested functions and Lexical scoping
- Functions’s this keyword
- Function as constructor
- The call() and the apply() methods
Scopes in function
Any variable defined anywhere in the function can be used everywhere in the function but not outside the function.