Glossary term
What is memory creation phase? Meaning for developers
Phase 1 of every execution context. The engine scans the code without running it: every var gets undefined, every function declaration gets its whole body.
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.