Glossary term
What is GEC (Global Execution Context)?
GEC stands for Global Execution Context.
The very first execution context, created when the file starts and destroyed only when the program ends. It sits at the bottom of the call stack the whole time.
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.