A global variable is a variable that is available throughout an entire application. It has be be handled carefully as can be changed by any piece of code of sub programs.