📊 JavaScript
Q. What is a closure?
  • (A) Function objects
  • (B) Scope where function’s variables are resolved
  • (C) Both Function objects and Scope where function’s variables are resolved
  • (D) None of the mentioned
💬 Discuss
✅ Correct Answer: (C) Both Function objects and Scope where function’s variables are resolved

Explanation: A combination of a function object and a scope (a set of variable bindings) in which the function’s variables are resolved is called a closure.

Explanation by: Tanmay
A combination of a function object and a scope (a set of variable bindings) in which the function’s variables are resolved is called a closure.

💬 Discussion


📊 Question Analytics

👁️
309
Total Visits
📽️
4 y ago
Published
🎖️
Tanmay
Publisher
📈
93%
Success Rate