Home / CSE MCQs / Javascript MCQs :: Discussion

Discussion :: Javascript MCQs

  1. What is the fundamental rule of lexical scoping?
  2. A.
    Functions are declared in the scope
    B.
    Functions are executed using scope chain
    C.
    Both a and b
    D.
    None of the mentioned

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    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.


Be The First To Comment