Explain the concept…
 
Notifications
Clear all

Explain the concept of closures in JavaScript.

1 Posts
2 Users
0 Likes
152 Views
0
Topic starter

Explain the concept of closures in JavaScript.

1 Answer
0

A closure is the combination of a function bundled together (enclosed) with references to its surrounding state (the lexical environment). In other words, a closure gives you access to an outer function’s scope from an inner function.

Share: