- Everything in JS happens
inside the execution engine
. - This execution environment has two components:-
- Memory component/ variable environment
- it stores all the variable (in form of key value) and functions.
- it is the
phase one (where the initial value for variable is undefined)
- the value for function is the code inside the function.
- Code component/ Thread of execution
- it is the place where code is executed.
- it is single thread where code is executed one line at a time.
- it is the second phase.
- it
replaces the value of variable the current one
. - for function it creates a new execution context and so on if another function is present inside .
- Memory component/ variable environment
- A Call stack is maintained where the 1st one is Global exectuion context
- it
maintains the execution order of execution context
. - Also called as
runtime stack, control stack, program stack, execution context stack, machine stack
- it
-
Notifications
You must be signed in to change notification settings - Fork 0
License
deepakkum21/JS
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published