I assume all the downvotes here are because we didn't say "Don't use global variables"? Or some other reason?
6
If the two script tags are on the same page, any variable declared outside of the scope of a function is global to the page. However, it does matter which script is loaded first for some applications.