Quiz Questions

Why is it, in general, a good idea to leave the global scope of a website as-is and never touch it?

Importance
Mid
Quiz Topics
JAVASCRIPT

JavaScript that is executed in the browser has access to the global scope, and if everyone uses the global namespace to define their variables, collisions will likely occur. Use the module pattern (IIFEs) to encapsulate your variables within a local namespace.

References