DEV Community

Discussion on: What is up with var, let and const? What the hell is the difference between these three?

Collapse
thumbone profile image
Bernd Wechner

Nice summary and I admire your curiosity and diligence in exploring it. For my part I simply accepted that var is essentially deprecated and let and const its modern replacements. I won't change that, meaning I have avoided using var for ages and routinely replace it with let or const as appropriate (and retest).