DEV Community

Discussion on: 8 JavaScript Tips & Tricks That No One Teaches 🚀

Collapse
 
lavigi profile image
Info Comment hidden by post author - thread only visible in this permalink
eva

Some awesome tips, thank you!

Not sure if I like overriding length with a constant value of 0 with the intention of emptying an array.

Maybe the garbage collection in JavaScript is awesome and we shouldn't worry about abandoned bits of memory, but to me this really feels like being a spoiled brat that keeps their room like a dumpster just because the family employs a maid who can clean up after them.

Some comments have been hidden by the post's author - find out more