JS Global Variables - thelastmile/FreeCodeCamp GitHub Wiki

JavaScript Global Variables

You should ALWAYS use var to declare your variables (to make locally) else it will install GLOBALLY

JavaScript Best Practices: Avoid Globals

Global Variables are bad