Log in to vote
Is there any use in declaring a variable local instead of global in the beggining of a script? W
I see a lot of scripts having the first variables local, why?
Please use the site question search there are a lot of answers for this common question.
you can access global variables anywhere in a script, though for local variables you can only access it inside its scope
Answer this question