🔰lexical scope

JavaScript's scope system is called "lexical scope"

JSconceptsscope ⟩ 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