DEV Community

Discussion on: 3 reasons to use 'var' in JavaScript

Collapse
 
paritho profile image
Paul Thompson

The EcmaScript committee has strict guidelines to 'not break the web'. Meaning, old JS code must always work.

Collapse
 
koire profile image
Koire

Also let is scoped