Programming - Concept
Global variable
A variable that can be accessed from many parts of a program
What's it for?
Makes one shared value available across a program, although this can make changes harder to track.
For example…
A game stores its overall difficulty setting in a global variable so many different parts of the game can read the same value