Introduction¶
To group functions and to avoid overwriting functions by defining them more than once one can use namespaces. JavaScript does not have namespaces, but a similar effect can be achieved by defining objects with functions, as shown below.
Alternative syntax: