🔰lexical scope
JavaScript's scope system is called "lexical scope"
JS ⟩ concepts ⟩ scope ⟩ lexical scope
🈯 synonyms: "static scope"
JavaScript's scope is determined at compile time; the term for this kind of scope is "lexical scope". ("lexical" is associated with the lexing stage of compilation)
👉 compare: static vs. dynamic scoping
Last updated