Global scope defines a namespace that is fully accessible in the entire program or script.
Global scope defines a namespace that is fully accessible in the entire program or script. Variables, classes and objects that are defined in the global scope can usually be accessed anywhere in the code, and are often referred to as global variables.