2.2 Object-Oriented Concepts

JavaScript is an object-oriented programming (OOP) language, and provides various objects and methods, as well as the ability to create user-defined methods. To use JavaScript effectively, it is important to understand the following concepts:

Properties: Properties are predefined attributes associated with an object. You can 'get' or 'set' these properties to observe or alter the corresponding aspects of the object.

Methods: Methods are predefined functions associated with an object. In general, these functions operate on the object itself.

Events: Events are predefined actions that are recognized by an object, such as a mouse movement or clicking.

<< 2.1 Server-Side vs. Client-Side Scripting © 1996-2013 InetSoft Technology Corporation (v11.5) 2.3 JavaScript Language Basics >>