Lesson 5: Scope
Scope can get dicey, so I’ll dive right in and do my best to explain what I’ve learned.
Scope is variable visibility; if code can modify or access a variable, it is in that variable’s scope. Scope is the accessibility of functions, variables, and objects in some particular…