Global variable
Also written: globals
A variable declared outside every function, so any code in the program can read and change it. Because that makes it hard to tell what changed a value, globals tend to hide bugs and are best avoided.
Also written: globals
A variable declared outside every function, so any code in the program can read and change it. Because that makes it hard to tell what changed a value, globals tend to hide bugs and are best avoided.