HELP! * GREY=local LOCAL HTML version of Foils prepared 26 February 1996

Foil 13 JavaScript Object Model -- I

From CPS616 Lectures on JavaScript CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. by Geoffrey C. Fox * See also color IMAGE

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 Tue Feb 18 1997