quick-tip
JavaScript: var vs const vs let
In JavaScript, what's the difference between var, const and let? In previous generations of JavaScript, only var was available. The latter two were added as part of ES2015. Scope Both let and const are blocked scoped variables whereas var was not blocked scoped. All var declared variables are "hoisted" effectively