Simple examples showcasing many different JavaScript concepts.
- Maker function to create objects.
- Sharing functions using global functions.
- Globals to a namespace.
- Namespacing to the maker function.
- Use Underscore's extend function.
- Prototypical using Object.create().
- Pseudo classical using the new keyword.
To be run with Node.js. Run node creation.js
from command line.
Console logs at the end to test.
Sections divided by ===s.
Comment and uncomment sections as necessary.