Scope and Closures
Scope decides where a variable can be used: block, function or global scope. Closures let functions remember the variables from the scope where they were created.
Lesson 20 of 32
Scope decides where a variable can be used: block, function or global scope. Closures let functions remember the variables from the scope where they were created.