Domanda di colloquio di Ziroh Labs

What are closures?

Risposta di colloquio

Anonimo

14 feb 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.