O OneWordDaily
AI-generated image

closure

/kləʊʒər/ noun · British & US
Valid in UKValid in US
Share WhatsApp

What does closure mean?

noun

A state of being closed or a result of a process that has been completed. In programming, a closure is a function that has access to its own scope and the scope of its outer functions.

Example

"The door was closed, and the room was quiet. In JavaScript, a function is a closure if it has access to its own variables and the variables of its outer functions."

Reviewed by Deb Chak, Editor. AI-assisted content curated by RJS Tech Solutions LLP.

Etymologically related

Synonyms for closure

Antonyms of closure

Rhymes with closure