Scopes
Scopes
The context in which a name is visible is called its scope. For example, if you declare a variable x within a function, x is only visible within that function body. It has local scope.
1 2 3 4 5 6 7 8 9 |
|
1 2 3 |
|
Scopes
The context in which a name is visible is called its scope. For example, if you declare a variable x within a function, x is only visible within that function body. It has local scope.
1 2 3 4 5 6 7 8 9 |
|
1 2 3 |
|