Hello so i've been confused lately by the term Execution Context why is that so ?
because i've seen that a lot of people referring Execution Contextto a lot of different things...
some say the Execution Context is the place where the code is executed
some say that Execution Context also contain all the variables of a function
In my opinion Execution Context is a function that is in process.
for example let's give a metaphor example
i'm the boss of a company and one of my worker called Bob. let's say i've written tasks in a page for Bob to do.
Bob is reading the page and he is doing everything the page saying line by line, now Bob encountered while reading a task that saying to read some other page so Bob is taking the other page and stack it on the page he read from. so now Bob is reading the other page after Bob finished reading the other page he moved it away. and keep reading the page he read before.
the Page is the "Execution Context"
basically Execution Contexts are the functions which are currently running
and of course the Execution Context on top of the stack is the one who's getting executed.
That's what Execution Context is in my opinion.
Execution Context isn't also a Lexical Environment
am i right ?