Closures can be used in JavaScript, Python, Ruby, Swift, C#, Objective C and a few of other languages. A Closure is an inner function that makes reference to the environment in it's outer function. Closures have access to:Their local scope (variables defined inside the inner function) The scope of their outer functions The global scope
1 Comment