var can shadow parameter even in strict modeโ๏ธ
๐ง under construction
Last updated
Was this helpful?
๐ง under construction
Last updated
Was this helpful?
โฉ โฉ โฉ var can shadow parameter even in strict mode.
function declaration instantiation
When an is established for evaluating an ECMAScript function๏ผ
a new is created and bindings for each formal parameter are instantiated in that .
Each declaration in the function body is also instantiated.
If the function's formal parameters do not include any default value initializers then the body declarations are instantiated in the same as the parameters
If default value initializers exist, a second is created for the body declarations
Formal parameters and functions are initialized as part of . All other bindings are initialized during evaluation of the function body.
๐ JS spec โฉ
(my question)
โญ๏ธ
YDKJS: Scope & Closures (v.2) โฉ Ch. 8 โฉ