Scope

JavaScript

Understanding JavaScript - Scope - Part 3

The most important part of a scope is the JavaScript execution context. So what is exceution context? Its the context depends on 2 questions, How the function is called? From where the function is called? read more...

JavaScript

Understanding JavaScript - Scope - Part 2

There are different ways which we can use to cheat lexical scoping in JavaScript, we can use let, eval, with, even try-catch block that will work differently that normal scoping in JavaScript read more...

JavaScript

Understanding JavaScript - Scope - Part 1

Scope in JavaScipt? How this keyword is working, how function scope behaves in JS compiler? Interestingly JavaScript is compiled like most of the language with static types like C++, Java, etc read more...