DEV Community

Maria Edwards
Maria Edwards

Posted on • Updated on

Closures in 179 characters

Image description

Explainer

A closure is like a backpack with gear (variables) from a general store (outer scope) and a specialized store (local scope). Once you start hiking (function runs), you can access the gear anywhere.

Top comments (0)