Chapter 8. Objects

image

8.1 What Are Objects?

JavaScript is all about objects. Windows and buttons, forms and images, links and anchors are all objects. Programming languages like Java, C++, and Python that focus on objects are called object-oriented programming (OOP) languages. JavaScript is called an object-based language because it doesn’t technically meet the criteria of the more heavy-duty languages, but it certainly behaves as an object-oriented language. Some people are apprehensive at the thought of tackling this kind of programming, although the mystique is somewhat diminished from what it was back in the last century when the top-down procedural ...

Get JavaScript by Example 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.