DEV Community

Ahmed Bouchefra
Ahmed Bouchefra

Posted on

Ever wondered how some JavaScript functions seem to “remember” variables even after they’ve finished running? That’s closures at work — one of JavaScript’s most powerful (and confusing) features.

Sign in to view linked content

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more