PART 2Professional JavaScript Development

CHAPTER 2Object-Oriented JavaScript

Objects are the fundamental units of JavaScript. Virtually everything in JavaScript is an object and takes advantage of that fact. However, to build up a solid object-oriented language, JavaScript includes a vast arsenal of features that make it an incredibly unique language, both in possibilities and in style.

In this chapter I'm going to begin by covering some of the most important aspects of the JavaScript language, such as references, scope, closures, and context, that you will find sorely lacking in other JavaScript books. After the important groundwork has been laid, we'll begin to explore the important aspects of object-oriented JavaScript, including exactly ...

Get Pro JavaScript™ Techniques 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.