JavaScript Tutorials - Herong's Tutorial Examples - 2.33, by Herong Yang
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
Takeaways:
Table of Contents
ECMAScript Language Specification and JavaScript Dialects
Data Types, Variables and Expressions
Creating, Accessing, and Manipulating Arrays
Defining and Calling Functions
Web Browser Supporting JavaScript
Server-Side and Client-Side Web Scripting
►Defining Your Own Object Types
Inheritance of Properties and Methods through the Prototype Object Chain
'jrunscript' - JavaScript Shell Command from JDK
Using Functions as "Function" Objects
Introduction to Built-in Object Types
W3C's Document Object Model (DOM) Specifications