DEV Community

Deva I
Deva I

Posted on

Closure

Definition of Closure :

A closure is a function that remembers and accesses variables from its outer scope even after the outer function has finished executing.

Example Program :

Output :

Top comments (0)