Author Archives: Vibhav Ranjan

 JavaScript Closures

A closure is a combination of a function bundled together (enclosed) with references to its surrounding state (the lexical scope). Lexical scoping The stance of a variable asserted in the source code denotes its scope in syntactic figuring. For example:

In this example: The variable name is a global variable. It can be accessed Continue Reading »