Scope the life-time of a variable; Global scope – variables declared without a (var) are in the global scope. Their life time is the longest. They are also easy to mutate at any time, thus you should take extra care when declaring variables in the global scope. Lexical scope – defines the visibility of the […]