JavaScript
var vs let vs const
1 2 3 4 5 6 7 8 9 10 11 12 | var: function scoped undefined when accessing a variable before it's declared let: block scoped ReferenceError when accessing a variable before it's declared const: block scoped ReferenceError when accessing a variable before it's declared can't be reassigned |