O'Reilly logo

Accelerated DOM Scripting with Ajax, APIs, and Libraries by Dan Webb, Stuart Langridge, Aaron Gustafson, Jonathan Snook

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 3Object-Oriented Programming

Chapter 2 covered a lot of ground, and this chapter builds on that information. I'll explain what object-oriented programming (OOP) is, and you'll learn how and why to do it with JavaScript. I'll also cover some advanced techniques for code management that can make your code more powerful and more flexible.

What Is Object-Oriented Programming?

In the last chapter, you learned what objects are in JavaScript and how to give these objects methods and properties. Object-oriented programming, often referred to as OOP, is a term that describes a number of programming concepts. Languages such as Java and C# are OOP at their core, and there's no way to avoid it. JavaScript, on the other hand, is traditionally programmed ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required