Skip to content
UPEEC

Functions in Depth

Scope rules, closures and iterators — how functions really work.

Easy
Comments 0

Functions are objects: they can be stored, passed and returned. Understanding scope and closures explains decorators and many library APIs.

Sub-topics (3)

Closures

A nested function that remembers variables from the function that created it.

Intermediate♥ 0🔖 0💬 0

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.