links: [[JS MOC]], [[lexical scope]]
---
### Closure is a combination of a function bundled together (enclosed) with references to it's surrounding state (the **lexical environment**). In other words closure gives you access to an outer function's scope from an inner function. In JS closures are created every time a function is created, at function creation time.
---
tags: #javascript , #fundamentals