Variable scope
Thursday, June 28, 2018
5:33 AM
global vs local
important to declare variables using var because if you don't, the variable is always created as a global variable, which can cause many problems.
other special types of variables.  Reserved word 'const' or 'let' is used to define these unique variables.
let scope is only the duration of a block (if…)