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 ...
Get Accelerated DOM Scripting with Ajax, APIs, and Libraries 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.