lexical scope
JavaScript's scope system is called "lexical scope"
Last updated
Was this helpful?
JavaScript's scope system is called "lexical scope"
Last updated
Was this helpful?
⟩ ⟩ ⟩ 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