O'Reilly logo

JavaScript: A Beginner's Guide, Fourth Edition, 4th Edition by John Pollock

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 8
Objects
Key Skills & Concepts
    Defining Objects
    Creating Objects
    Using Prototypes
    Object Statements
    Understanding Predefined JavaScript Objects
image
Objects provide you with even more flexibility in your scripts. They can be used as another way to store data, or can be used to create reusable structures. In this chapter, you will learn what JavaScript objects are, how to create objects, and how to make use of some of the predefined objects.
Defining Objects
Since JavaScript is a prototype-based language, objects work differently than they do in class-based languages.
JavaScript objects are basically a collection of ...

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