Q. Which of the following are examples of closures?

  • (A) Objects
  • (B) Variables
  • (C) Functions
  • (D) All of the mentioned
πŸ’¬ Discuss
βœ… 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.
Explanation by: Tanmay
Technically, all JavaScript functions are closures: they are objects, and they have a scope chain associated with them.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
242
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Tanmay
Publisher
πŸ“ˆ
94%
Success Rate