4 ms·
No, quite the opposite - `let` should be used by default (due to better scoping rules (block rather than function) for most cases) and `var` only used when nece
by fouric 5y ago
No, quite the opposite - `let` should be used by default (due to better scoping rules (block rather than function) for most cases) and `var` only used when necessary.
- bstar77 5y agoIMO, `const` should be used by default, `let` in rare instances and `var` never.