DEV Community

Discussion on: Differences between "var" and "let" keywords?

Collapse
 
anze3db profile image
Anže Pečar

An important thing to note is that there are no good reasons for using var over let. let is what var should have been all along to not be confusing.

So forget about var and just use let (or even better, use const) 😉

Collapse
 
nunocpnp profile image
Nuno Pereira

Absolutely , this is a es5 question , today ill post the es6 version the differences between let and const