Ziroh Labs Interview Question

What are closures?

Interview Answer

Anonymous

Feb 14, 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.