Skip to content
engineering workbench.by StudyPort Academy
All glossary terms

GLOSSARY · A WORD, UNPACKED

closure

a function together with access to the surrounding bindings where it was created.

A little more detail

A returned function can keep using those bindings after the outer function finishes. It retains access to live bindings, not automatically frozen copies. Separate calls to the outer function create separate local state; functions created during the same call may share that state.

See it in practice

These lessons pair the idea with examples you can change and run.