Vidyalelo
JavaScript · Q35

Array And Function

Programming · JavaScript · question 35

Q35

What is the fundamental rule of lexical scoping?

A.
Functions are declared in the scope
B.
Functions are executed using scope chain
Answer
C.
All of the mentioned
D.
None of the mentioned

Answer: Option B

Solution

Answer: Option B
Solution:
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.