>_
new2coding
browse
topics
about
random
browse/
search
All
AI
Building software
Computers
Computer science
Databases
Infrastructure
Mobile
Networks
Programming languages
Security
The web
Tools
1 result
languages/javascript-closures-how-a-function-remembers-a-variable-after-the-func.md
JavaScript closures: how a function remembers a variable after the function that made it has finished
A function in JavaScript can still use a variable long after the function that created it has finished. That is called a closure, and you…
5 min read · 3 Nov