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: let name = ‘John’; function greeting() { let message = ‘Hi’; console.log(message + Continue Reading »