Hacker News new | past | comments | ask | show | jobs | submit login

Why not use let instead of var?



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: