Question d’entretien chez Ziroh Labs

What are closures?

Réponse à la question d'entretien

Utilisateur anonyme

14 févr. 2022

Function bounded with its lexical scope forms closures, usually when we return function from function or it can be more scoping as well , actually that returned values hold closure formed by that function. It is a very important concept in JavaScript, If you know setTimeout function in JavaScript then that is one of the usage of closures.