DEV Community

Discussion on: Stop using var for declaring variables !!!

 
lionelrowe profile image
lionel-rowe

You didn't say it's better overall, you said it's "useful in many cases". That's what I was asking for clarification about, because in my experience it's only useful as a transpilation target — when writing your own code, const and let always have better semantics and lead to fewer bugs. But I was curious as to what your counterexamples would be.