Q. Which JavaScript feature allows function to access variables from an outer scope?

  • (A) Closure
  • (B) Scope chain
  • (C) Callback
  • (D) Hoisting
πŸ’¬ Discuss
βœ… Correct Answer: (A) Closure
Explanation: Closures give functions access to variables from their outer lexical scope.
Explanation by: Mr. Dubey
Closures give functions access to variables from their outer lexical scope.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
84
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
81%
Success Rate