3
I’m trying to deepen the operation of javascript and I’m having doubts between some definitions I found. First, a simplified representation of the javascript execution environment in the browser would be this:
I started studying about the Javascript (Call stack) stack and found a definition that says:
A call stack (call stack) is formed by 1 or more stack frames. A stack frame is added/stacked in the call stack every time a function is called.
The representation would be that:
Up to this point I was able to understand, but I came across a slightly different definition saying that:
A call stack is a collection of Execution contexts(contexts of execution) and that an execution context is created and stacked when a function is called.
I’ve even seen them call the call stack Execution stack.
These definitions represent the same structure in Javascript or are different Stacks?