A closure is when an inner function retains access to variables from an outer scope. It is commonly used for data privacy or function factories.
Expanding on the short answer — what usually matters in practice:
A tiny example (an explanation template):
// Example: discuss trade-offs for "what-is-a-closure-and-a-typical-use-case?"
function explain() {
// Start from the core idea:
// A closure is when an inner function retains access to variables from an outer scope. It is
}