โ๏ธstatic vs. dynamic scoping
JS โฉ concepts โฉ scope โฉ static vs. dynamic scoping
When resolving identifier(s),
static scope๏ผ cares the where the variable is declared. ( scopes are determined at compile-timeโ)
dynamic scope๏ผ cares the when the function is invoked. ( the resolving happens at runtimeโ)
Last updated