HELP! * GREY=local LOCAL HTML version of Foils prepared 15 January 1997

Foil 24 JavaScript Object Model -- I

From JavaScript Tutorial for CPS616 Technologies of the Information Age 1997 Basic Information Track of CPS -- Spring Semester 97. by Geoffrey C. Fox * See also color IMAGE
Addon
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 definition, function and constructor!
An object is a container which has variables (simple datatypes) other objects or methods inside it.
Variables or other objects inside an object are called properties
functions inside an object are called its methods
Arrays are defined as sequential properties inside a particular object
Multidimensional arrays are constructed as object arrays which themselves have properties which 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 Feb 19 1997