Sail E0 Webinar
Question
What is the fundamental rule of lexical scoping?
Options:
A .  Functions are declared in the scope
B .  Functions are executed using scope chain
C .  Both a and b
D .  None of the mentioned
Answer: Option B


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.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers