The first part of the article introduces the idea of global and local scopes, with a few examples of how
var, the two ways to initialize a JS variable, handle scope differently.
After this, the second part delves into namespacing. Here, I include examples of static namespacing using direct assignment and object literals, as well as dynamic namespacing using immediately invoked function expressions (IIFEs) and the module design pattern.
Thanks for reading!