Pergunta de entrevista da empresa Ziroh Labs

What are closures?

Resposta da entrevista

Sigiloso

14 de fev. de 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.