I recently came across this http://www.w3schools.com/js/js_scope.asp where I learned about "Automatic Global variables". Here is how you use it:
// code here can use carName
function myFunction() {
carName = "Volvo";
// code here can use carName
}
However, how high can it go? I am worried other files can access it to if its that global. If I am using AngularJS, can other controllers use it? Can other files use it?