Understanding C74's use of the phrase "global variable" in javascript documentation
Please help me wrap my head around what "global" actually means in the javascripting context.
Coming from a development background working in programming languages like C, C++, C#, Java, Python, and Groovy; I'm very confused by the phrase "global variable" as used throughout the Max javascript documentation such as, "Variables defined in the global scope will persist..."
In other language implementations a "variable in the global scope" is accessible from any nested scope, and there is only one instance of a global variable per "global scope". But that does not seem to be the case with Max-js?
In the compressed example patcher, the variables "global00" and "global11" are defined in the "global scope", but "global00" behaves more like a "script instance" (or "class") scoped variable than a "global". "Global11" exhibits behavior more like a traditional "global" variable, but that's because it's defined as a (Max-js) Dict object instead of int or string, and Dict objects are unique in that respect. There is only one instance of any Dict object (name) "globally" inside any Max Runtime instance. But that's not true for plain js types like int and string.
Please help me understand why C74 uses "global scope" throughout the javascript documentation instead of something less confusing like "script instance scope". What "global" details am I failing to take into account?