DEV Community

Discussion on: Why you should stop declaring variables inside a for loop (especially in JavaScript)

Collapse
 
rumkin profile image
Paul Rumkin

There is an excellent explanation by v8 developers of how memory allocation works in v8 JS engine.

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

I would read this before anyone jumps to conclusions.