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

Defining Your Own Object Types

This chapter provides introductions and tutorial examples on how to define your own object types. Topics include defining constructor functions, adding properties and methods to objects or constructor prototypes, looping through properties and methods, using 'instanceof' and 'typeof' operators.

Prototype-Dased Object-Oriented Programming Style

Prototype-Based Programming Features in JavaScript

Defining Object Constructor Functions

Adding Properties and Methods to Objects

"for ... in" and "for each ... in" Statements

"prototype" Property of the Constructor Function Object

"instanceof" Operator - Determining Object Type

"typeof" Operator and Data Types

Dr. Herong Yang, updated in 2008
Defining Your Own Object Types