I am reading a tutorial about closure and it describes Execution Context as follows:
When a JavaScript function is executed, a construct referred to as an Execution Context is created. The Execution Context is an abstract concept prescribed by the specification to track the execution progress of its associated code. As an application runs, an initial Global Execution Context is created. As each new function is created, new Execution Contexts are created which form an Execution Context stack.
When a JavaScript function is executed, a construct referred to as an Execution Context is created.
This sentence says that an Execution Context is created when a function is executed.
As each new function is created, new Execution Contexts are created which form an Execution Context stack.
This sentence says that an Execution Context is created when a new function is created.
My question is: which one is right?