DEV Community

Calvin
Calvin

Posted on

Reading Snippets [11]

A closure can be defined as a function that has access to the parent scope even after the scope is closed.

Scope determines the lifespan of a variable and the functions in a program that can access it.

Top comments (0)