+ 5
Its closure actually. A closure is an inner function that has access to the outer (enclosing)function's variables—scope chain. Theclosure has three scope chains: it has access to its own scope (variables defined between its curly brackets), it has access to the outer function'svariables, and it has access to the global variables.
7th Nov 2017, 3:42 AM
Harsh
Harsh - avatar