A

Admin • 833K Points
Coach

Q. What is a closure in JavaScript?

  • (A) A function with preserved data
  • (B) A function with no parameters
  • (C) A loop
  • (D) An event handler
  • Correct Answer - Option(A)
  • Views: 17
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

A closure is a function that remembers variables from its outer scope.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.