Question 1
Which of the following statements is true about closures in JavaScript?
A closure can access variables from its outer function even after the outer function has returned.
A closure can be created when a function is defined inside another function.
Closures are useful for data encapsulation and controlling access to private data.
All of these.
