Let use the VSCODE debugger to visualize a closure to help us understand what they are.
I consider myself a visual learner so it helps me to see the thing I am trying to learn. So I am going to set breakpoints and looking directly at the closure in the debugger. This should also help you understand what a closure is.
Are you a visual learner? Does this help you understand closures?
Watch this video if you need help setting up the debugger in VSCode. • Beginner JavaScript: Setting up debugging ...
Quokka live coding extension: https://marketplace.visualstudio.com/...