6 ms·
Yes, `let` is fine. I use `let` 99% of the time in my personal projects, it's more convenient, but I often must use `const` when working on an existing codebase
by sunseb 6y ago
Yes, `let` is fine. I use `let` 99% of the time in my personal projects, it's more convenient, but I often must use `const` when working on an existing codebase. :(
Most of JavaScript devs do like you, they default to `const` and if they need to reassign the variable, they switch to `let`.
To me it feels more like a ceremony for declaring a variable than a rational and a useful practice. :)