Glossary term
What is execution context? Meaning for developers
The container the engine builds before running any code: a memory half (variables and functions) and a code half (the line currently running). Every function call gets its own.
Learn it properly · JavaScript CoreLesson 1: How JS Works: The Execution ContextEverything in JavaScript happens inside an execution context. How the global one is created — memory phase first, then code phase — and why that order explains almost everything that follows.