mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-10-29 17:44:52 +08:00
* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
733 B
733 B
Variable Scopes
Variable scope determines where in a program a variable can be accessed. Variables declared inside a function or block are local and only visible within that block, while variables declared outside any function are global and visible throughout the file, or across files if declared extern. Local variables generally exist only for the duration of the block they are declared in, and using a name from an outer scope inside a nested block temporarily hides the outer variable.
Visit the following resources to learn more: