Posted inJavascript Technology
How Closures work in Javascript
What is Closure? Closure is nothing but a function which is enclosed with its lexical scope. Lexical scope simply means a variable defined outside a function can be accessible inside…