This is an example of how to use iffe closure example to avoid collisions with other global variables in your programs. By placing the variable in the function it makes it private and not accessible everywhere else that would create a problem.
The third way to do this is the best. To avoid collisions.
- Make an object
- Object Lateral
- call another power constructor
- Define some some variables and functions
- These become private members
- Augment the object with privileged methods.
- Return the object