JS and Global scope
A tale of when a bad practice is useful
If you have been developing using Javascript for more than a few minutes you know that global scope is a no-no. Don’t put things in the global scope. But sometimes you need to put things in the global…