Q. What is a closure in JavaScript?
β
Correct Answer: (A)
A function with preserved data
Explanation: A closure is a function that remembers variables from its outer scope.