Does the block-level scope of ES6 also create an execution context?

an article says that "global code, function code, and eval () functions can create an execution context." what I want to ask is, does the block-level scope (let, const) of ES6 also create an execution context?

Mar.29,2022

of course not, execution context and block-level scope are two concepts. When entering the global code or executing the function (ignore eval) will form the execution context of the current environment, the global code corresponds to the global context, the function corresponds to the function execution context, and the scope you say only exists in the current execution environment, a collection of variables or functions in the current context.


No way
I understand that the context creation process must be accompanied by this value determined

Menu