JavaScript Tutorials - Herong's Tutorial Examples
Dr. Herong Yang, Version 2.10

Introduction to Objects

This chapter provides introductions and tutorial examples on the 'object' data type in JavaScript. Topics include creating 'Object' objects, adding and retrieving properties, adding and running methods, named and indexed properties, comparing arrays with objects.

What Is an Object?

Objects of "Object" Data Type

Adding and Deleting Object Own Properties

Adding and Deleting Object Own Methods

Using "this" Keyword to Represent Current Object

Object Literals of the "Object" Type

Objects and Associate Arrays

Objects with Indexed Properties

Differences between "Object" and "Array"

Using "Array" Objects as "Object" Objects

Dr. Herong Yang, updated in 2008
Introduction to Objects