I defined a variable in one of my JavaScript files. I want to access the value of that variable among JavaScript files. In one file I am initializing the value of that varia
You should be able to access them if they are in the global scope or can be accessed from the global scope.
For example, I have a object literal like this in my HTML in a script element...
script
Which I can access in any other subsequent JavaScript file with config.basePath.
config.basePath