DEV Community

Discussion on: Closure? What is a Closure?

Collapse
 
okrohan profile image
Rohan Salunke • Edited

Thanks for the article!
Just to adding a bit more to this, As a beginner if you are confused and want to see what references are being closure'd by a function, You can easily hit console.dir(functionReference) in the console and expand
Scopes -> Closures.

Hope that's helpful. Happy Sunday!

Collapse
 
_mohanmurali profile image
Mohan Murali

Oh nice, I did'nt know about that. Thanks for sharing.