Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Use const for all of your references; avoid using var. If you must mutate references, use let instead of var.

In my 15 years of programming javascript I've never once seen this matter.



That's because let and const where officially introduced in JavaScript this year, see the JavaScript standard ES6 (or ES2015).




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: