# Closures: Functions That Remember

A closure is a function together with the variables it could see where it was made, so it keeps using them after the function that made them has finished.

![Cheat sheet: Closures: Functions That Remember](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/10/e958e2a91e4b4347b6b3f2a110b0d749.webp)

- Category: JavaScript
- Level: Journeyman
- Tags: Closure (javascript), Garbage Collection (javascript), Higher-Order Function (javascript), JavaScript, Lexical Scope
- Updated: November 1, 2026

Source: https://www.ask-codey.com/cheat-sheets/javascript-closures-functions-that-remember-cheat-sheet
