Basic HTML version of Foils prepared 23 June 1997

Foil 24 JavaScript Object Model - I

From JavaScript Tutorial for Certificate Course UC Web applications Certificate -- Summer 97. by Geoffrey C. Fox, Tom Scavo

Object Hierarchy in JavaScript
JavaScript has a simple object-oriented structure without any inheritance ( a major difference from Java)
JavaScript has a rather confused syntax for defining objects, which mixes the role of class, function, and constructor!
An object is a container with properties and methods inside it.
Variables or other objects inside an object are called properties
Functions inside an object are called methods
Arrays are defined as properties inside an object
Multidimensional arrays are arrays, which themselves have properties that are arrays



Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Wed Apr 1 1998