How JavaScript Code is executed? ❤️ & Call Stack Flashcards

1
Q

What happens after a javascript code is run?

A

A Global Execution Context is created.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How is the Global execution context is created?

A

In two Phases.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the phases of the Global Execution Context?

A
  1. Memory Creation Phase

2. Code Execution Phase

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the Memory Creation phase?

A

Javascript will allocate memory to all the variables and functions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In the Memory Allocation phase, what is the content of the variables?

A

undefined

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

In the Memory Allocation phase, what is the content of the functions?

A

The code block

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

In what phase does javascript execute calculations?

A

In the Code Execution Phase

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

In the Code Execution phase, what is the content of the variables?

A

The values given.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What happens when a function is invoked?

A

A new Execution Context is created.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does the Global Execution Context use to manage the executions?

A

The Call Stack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does the Call Stack manage?

A

The Execution Contexts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly