Q. Which of the following are examples of closures?
β
Correct Answer: (D)
All of the mentioned
Explanation: Technically, all JavaScript functions are closures: they are objects, and they have a scope chain associated with them.