javascript function internal scope property -


what difference in internal scope property assigned on function declaration , on entering function execution context?

definition: [[scope]] property written , stored in function object. [[scope]] in contrast scope (scope chain) property of function instead of context.

link:(http://dmitrysoshnikov.com/ecmascript/chapter-4-scope-chain/#function-creation)

what mean :as function gets declared assigned scope property or during execution time scope property gets assigned.

this closure concept. worded differently here normal. there 2 things going on -- first have closure, variables declared locally context of function definition made available function. "scope chain" refers to. in addition, locally defined variables (var statements within function) don't exist until function starts @ "execution context". (typically these stored on stack or heap).


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -