AlanStevens wrote:
The local variable exists only within the programming construct.
A variable used inside a program will have the same value as one outside the program with the same name if it is previously defined, but changes made to it within the context of the program are not passed back out.