DEV Community


Discussion on: Confused by JavaScript's const? Me too!

apihlaja profile image
Antti Pihlaja

When seeing let, my first thought is why that's not const? Using let communicates: watch out, we are doing some weird stuff here. Usually it signals programming paradigm change.

For example, in react app, you need maybe one or two let variables for some special cases. It steps out quite bit in the middle of declarative functional code.