Problem Statement
What is a closure?
Explanation
A closure is the combination of a function bundled together (enclosed) with references to its surrounding state (the lexical environment).
Get the Preplance app for a seamless learning experience. Practice offline, get daily streaks, and stay ahead with real-time interview updates.
Get it on
Google Play
4.9/5 Rating on Store
Javascript · Interview Question
Detailed answer, explanation and code for this interview question. Ideal for Javascript interview preparation, coding rounds and viva questions.
What is a closure?
Master Javascript with our complete collection of questions, tutorials and guides.