Closure
Meaning in software engineering, with examples
In software engineering, closure means: A function together with access to variables from its surrounding lexical environment, even when it is called from elsewhere.
In Turkish: kapanım
How it is used
Used in JavaScript and functional programming when explaining callbacks, private state and variables captured by nested functions.
Example sentences
The closure keeps access to the request ID after the outer function returns.
Each closure in this list captures a different configuration value.
Common collocations
- create a closure
- closure capture
- lexical closure
Related terms
More terms: Programming Concepts
Practise with graded reading
Reading at the right level is the fastest way to make new words stick. Pick free English books by level:
