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
1 JavaScript has a simple object-oriented structure without any inheritance ( a major difference from Java)
2 JavaScript has a rather confused syntax for defining objects, which mixes the role of class, function, and constructor!
3 An object is a container with properties and methods inside it.
4 Variables or other objects inside an object are called properties
5 Functions inside an object are called methods
6 Arrays are defined as properties inside an object
7 Multidimensional arrays are arrays, which themselves have properties that are arrays

in Table To:


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