Why I prefer const over let: ✅ const provides me extra cues because const is...


Why I prefer const over let:

✅ const provides me extra cues because const is more “narrow” than let. Just like in TypeScript, I favor narrow types over wider types.

✅ const encourages writing immutable code, which I’ve found improves readability.

✅ If I see a let, it’s a red flag - something is being mutated. We can probably refactor to eliminate the mutation. This cue isn’t available if let is used everywhere.

View original on X