DEV Community

0 seconds of 5 minutes, 1 secondVolume 90%
Press shift question mark to access a list of keyboard shortcuts
00:00
00:00
05:01
 
JavaScript Joel
JavaScript Joel

Posted on

30 6

Visualizing Closures with the VSCode Debugger

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

Quokka live coding extension: https://marketplace.visualstudio.com/items?itemName=WallabyJs.quokka-vscode

More Videos

If you'd like to see more of my videos, head over to YouTube.

More Minute JavaScript Videos:

Screenshot of YouTube Channel

What would you like to see next?

Sentry blog image

How to reduce TTFB

In the past few years in the web dev world, we’ve seen a significant push towards rendering our websites on the server. Doing so is better for SEO and performs better on low-powered devices, but one thing we had to sacrifice is TTFB.

In this article, we’ll see how we can identify what makes our TTFB high so we can fix it.

Read more

Top comments (3)

Collapse
 
joelnet profile image
JavaScript Joel

Glad you found it useful! Cheers 🍻

Collapse
 
miclgael profile image
Michael Gale

This was great, thanks!
Enjoyed your longer format one as well.

Collapse
 
joelnet profile image
JavaScript Joel

I'm hoping to have more on debugging in Node. I don't think I covered enough here :)

SurveyJS custom survey software

JavaScript Form Builder UI Component

Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay