Question d’entretien chez Yelp

Describe what a closure in javascript is.

Réponse à la question d'entretien

Utilisateur anonyme

30 juill. 2014

Accessing variables outside of the nearest lexical scope. E.g . if there is a function (x) inside another function (y), the variables can remain accessible after returning from the function (x) called.