Hacker News new | ask | show | jobs
by jsprogrammer 4152 days ago
Why not use let instead of var?
1 comments

Only habit. We're so used to var. But yea, need to transition to let for most things.
I think migrating to const makes more sense. In practice only a few things require to be mutated.
Didn't realize const was in. Will definitely be using it.