——This starts with the JAVASCRIPT interpreter: Whenever the JAVASCRIPT interpreter starts to execute a function, it will create an execution environment and generate a variable object closely related to the function. In this execution environment All variables or functions defined in will be saved by him. But he is like a relevant department, which may be closely related to you, but you will never find him. You cannot call this object, but the JAVASCRIPT parser will call it when processing data.
That’s it for the topic. Let’s talk about the execution environment in real terms. Let's start with the global execution environment. It is the outermost of the entire execution environment and is added as an attribute of the window object.
For example: