Q. What is the fundamental rule of lexical scoping?

  • (A) Functions are declared in the scope
  • (B) Functions are executed using scope chain
  • (C) Both
  • (D) None
πŸ’¬ Discuss
βœ… Correct Answer: (B) Functions are executed using scope chain
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.
Explanation by: Tanmay
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.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
316
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Tanmay
Publisher
πŸ“ˆ
93%
Success Rate