What are closures?
Closures
are functions that refer to independent (free) variables. In short, variables
from the parent function of the closure remain bound from the parent’s scope.
Closures have access to the outer function’s variable even after the outer
function returns
Closures store references to the outer function’s variables
No comments:
Post a Comment