function declaration instantiation
🚧 under construction
Last updated
Was this helpful?
🚧 under construction
Last updated
Was this helpful?
⟩ ⟩ ⟩ ⟩ instantiation
🚧
function declaration instantiation
When an execution context is established for evaluating a function:
a new is created.
bindings for each parameter are instantiated in that .
body declarations are also instantiated:
if the parameters do not include any default value initializers: the body declarations are instantiated in the same as the parameters( parameter scope)
if default value initializers exist:
a second is created for the body declarations
📘 JS spec ⟩