DEV Community

Discussion on: let, const, and my view

jeroenrombouts profile image
Jeroen Rombouts

I used to think like you. Then I started working in an environment where I'm about the only real front-end developer and the others are repurposed WinForms developers. You don't want to know how many times I get the question why their const can be mutated.

So, yes, in theory you're right. In some environments, however, prefer-let makes more sense. I'm all for changing your approach based on your environment and/or project instead of thinking in absolutes.