How JavaScript Code is executed? ❤️ & Call Stack Flashcards
What happens after a javascript code is run?
A Global Execution Context is created.
How is the Global execution context is created?
In two Phases.
What are the phases of the Global Execution Context?
- Memory Creation Phase
2. Code Execution Phase
What is the Memory Creation phase?
Javascript will allocate memory to all the variables and functions.
In the Memory Allocation phase, what is the content of the variables?
undefined
In the Memory Allocation phase, what is the content of the functions?
The code block
In what phase does javascript execute calculations?
In the Code Execution Phase
In the Code Execution phase, what is the content of the variables?
The values given.
What happens when a function is invoked?
A new Execution Context is created.
What does the Global Execution Context use to manage the executions?
The Call Stack
What does the Call Stack manage?
The Execution Contexts.