🔰execution context
state to track the execution progress of code.
JS ⟩ concept ⟩ execution context
An execution context contains whatever implementation specific state is necessary to track the execution progress of its associated code.
It may contain (but not limited to) the following:
lexical environment - stores variables/this ...
code evaluation state - state needed to perform/suspend/resume evaluation of the code associated with this execution context.
📘 JS spec ⟩ 8.2 Execution Contexts
call stack - track execution contexts.
lexical environment - part of execution context.
lexical environment is part of execution context.
function declaration instantiation - the proccess before calling a function.
scope of a code block - can reach all its parents lexical environment.
this is a property of execution context (more specifically, lexical environment).
Last updated
Was this helpful?