📖 INDEX
LOADING ENGINE...
JS Scope Context
Understand how JavaScript tracks variables and memory.
execution_context.js
🔭
Tutor:Scope determines the accessibility of variables. Global Scope is the outermost layer.
Scope Tree
Unlock the layers of JS Execution Context.
Concept 1: Lexical Scope
JavaScript uses lexical scoping, meaning the accessibility of variables is determined by their position in the source code.
System Check: Standard
Where does an inner function look for a variable if it's not found locally?
Execution Context Glossary
- Global Execution Context
- The default context where any code that is not inside a function is executed.
- The Scope Chain
- The process of looking up variables in parent environments until the global scope is reached.