3 ms·
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 nev
by joeblow99 11y ago
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.
- RoboSeldon 11y agoThat's because let and const where officially introduced in JavaScript this year, see the JavaScript standard ES6 (or ES2015).