Insticator interview question

Explain what is a closure.

Interview Answers

Anonymous

10 Dec 2014

Within the scope of the function, the variables defined at the top can be accessed anyway in that function including sub-functions

1

Anonymous

2 Feb 2013

In computer science, a closure (also lexical closure or function closure) is a function or reference to a function together with a referencing environment.