Scope

« Back to Glossary Index

Scope defines the region of a program where a variable or identifier is accessible. Common scopes include local, global, and block scope. Proper scoping prevents naming conflicts and bugs. Example: A variable accessible only within a function.


← Back

« Back to Glossary Index