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. |