Chapter 6. Cloning, Inheritance, and Submodules

In the previous chapter, we looked at how we can extend and modify modules using loose and tight augmentation.

In this chapter, we are going to explore some other techniques that may come handy when we are working with modules, which can help us extend and modify the functionality of our modules. Depending on the requirements of your applications, as well as your personal preferences, some or all of these techniques may be of use to you.

The beginning of the chapter will provide an overview of some of the approaches for creating object based on other objects which you may already be familiar with. Then, we will look at how object cloning can be used to create objects that are replicas of other objects. ...

Get Modular Programming with JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.