Ensure You Are Not Adding To Global Scope in JavaScript
A key best practice if you're writing JavaScript code is to avoid adding objects to the global scope. There are several good reasons for this – globals add coupling, it makes it easier for disparate libraries to break …