What does closures mean?
noun
A function that has access to its own scope even when called outside that scope. In programming, a closure is a function that has access to its own scope and the scope of its outer functions, even when the outer function has returned.
Example
"The function `add` is a closure because it has access to the variable `x` even after the outer function `outer` has returned."
Definition generated by AI and curated by RJS Tech Solutions LLP.