14. Advanced JavaScript

As with any Object-Oriented Programming (OOP) language, working with JavaScript can range from being relatively simple and easily comprehended, to extremely complex and rather obtuse. Since this book is intended for beginners, I’ve restricted coverage thus far to the most critical yet understandable aspects of the language. However, there are several more advanced concepts with which you should be familiar, and those are the focus in this chapter. Even if you don’t immediately begin using these new techniques, they should be in the back of your mind, for retrieval at some future date when the need arises.

Defining Namespaces

Most OOP languages support namespaces: named realms for defining classes, libraries, and modules. ...

Get Modern JavaScript: Develop and Design now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.