Y
Hacker News
new
|
ask
|
show
|
jobs
by
joeblow99
4008 days 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.
1 comments
RoboSeldon
4008 days ago
That's because
let
and
const
where officially introduced in JavaScript this year, see the JavaScript standard ES6 (or ES2015).
link