filmov
tv
Execution context and variable object

Показать описание
This execution context object has three properties:
Variable object
Scope chain
The ‘this’ variable
When a function is called, a new execution stack is put on top of the currently executing execution stack. JavaScript engine creates the execution context in the following two stages:
1. Creation Phase
2. Execution Phase
In the creation phase, JavaScript engine performs the following task:
Creates the Variable object: Variable object is a special object in JavaScript which contain all the variables, function arguments and inner functions declaration information.
Creates the scope chain: Once the variable object gets created, the JavaScript engine initializes the scope chain which is a list of all the variables objects inside which the current function exists. This also includes the variable object of the global execution context. Scope chain also contains the current function variable object.
Determines the value of this: After the scope chain, the JavaScript engine initializes the value of this.
In this lecture, we will mainly focus on understanding creation of Variable object property of execution object
Variable object
Scope chain
The ‘this’ variable
When a function is called, a new execution stack is put on top of the currently executing execution stack. JavaScript engine creates the execution context in the following two stages:
1. Creation Phase
2. Execution Phase
In the creation phase, JavaScript engine performs the following task:
Creates the Variable object: Variable object is a special object in JavaScript which contain all the variables, function arguments and inner functions declaration information.
Creates the scope chain: Once the variable object gets created, the JavaScript engine initializes the scope chain which is a list of all the variables objects inside which the current function exists. This also includes the variable object of the global execution context. Scope chain also contains the current function variable object.
Determines the value of this: After the scope chain, the JavaScript engine initializes the value of this.
In this lecture, we will mainly focus on understanding creation of Variable object property of execution object
Execution context and variable object
JavaScript Visualized - Execution Contexts
Predicting Execution Contexts - Object-Oriented JavaScript
Solving problems with Execution Context, this, and Timers
Execution Phase and Variable Object
JavaScript Under The Hood [2] - Execution Context
#62 Execution Context & Variable Object | JavaScript Runtime & Engine | A Complete JavaScrip...
JavaScript Tutorial Part 2 - Execution Context and The Call Stack
ICP Developer Journey 4.6 | Motoko level 4
Predicting Execution Contexts - Object-Oriented JavaScript
Predicting Execution Contexts (2) - Object-Oriented JavaScript
Execution context and Call Stack
Predicting Execution Context Output - Object-Oriented JavaScript
Predicting Execution Contexts (2) - Object-Oriented JavaScript
An Introduction to Functions, Execution Context and the Call Stack (FULL VIDEO - Parts 1-3)
Predicting Execution Context Output - Object-Oriented JavaScript
Creation Phase and Hoisting in Execution context
Execution Context in Javascript
Part 28 - Dynamic Variables, Global Object and the Execution Context in Postman
😳Javascript Call Stack vs Execution Context #javascript #learnjavascript #programming #codeblock
The Execution Context
5 Execution Contexts and The Call Stack
Execution context and execution stack
Understand the context in javascript
Комментарии