๐ฐscope
๐ง under construction
Last updated
Was this helpful?
๐ง under construction
Last updated
Was this helpful?
Was this helpful?
JS โฉ scope
( visibility of variable)
the current context of execution in which values and expressions are "visible" or can be referenced.
concepts about scopes
/ /
- stores local variables/functions/this.
kindes of scopes
- the scope of a JS file.
๏ผ default scope for all code running in script mode.
special scopes
- where name of function expression lives in.
other topics
module scope๏ผ scope for code running in module mode.
function scope๏ผ scope created with a function.
block scope๏ผscope created with a pair of curly braces. (where let / const can belong to)