From where can we access a variable with a global scope?

From anywhere in the codeOnly inside functions

From anywhere in the code.