What is the fundamental rule of lexical scoping?

A Functions are declared in the scope
B Functions are executed using scope chain
C Functions are declared outside the scope
D Variables are declared within the function

Correct Answer: Functions are executed using scope chain

The fundamental rule of lexical scoping is that the JavaScript functions are executed using the scope chain that was in effect when they were defined.

Related Questions

What must be done in order to implement Lexical Scoping?
What is the opposite approach to the lexical scoping?
Which of the algorithmic languages is lexical scoping standardized in?
What kind of scoping does JavaScript use?
What is the purpose of the dynamic scoping?
What is the output of a lexical analyzer?
In analyzing the compilation of PL/I program, the term "Lexical analysis" is associated with
The table created by lexical analysis to describe all literals used in the source program, is:

Next steps