JS Global Variables - ashish9342/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

⚠️ **GitHub.com Fallback** ⚠️