JavaScript Namespacing

01.28.2015

JavaScript files can often create conflicting global elements, overwriting existing, important data.

Namespaces are not native to JavaScript, but can be simulated by using a variable object as a container.

Everything related to that namespace will be encapsulated within that namespace.

Nested namespacing is also possible.