0
What is the difference between "global scope" and "local scope"?
( I have already read the explanation in sololearn)
2 Answers
+ 1
A variable declared in a Local Scope (Function, method, etc) can not be accessed from the outside. A global scope variable can be accessed anywhere.
+ 1
Paul Grasser Would you please give me an example of global and local scope?