WEB Developer's Glossary



Alphabetical Jump into Glossary

Symbols  A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z            Back to Parent         Site Conventions         Topic Indices



O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O

• Object: JavaScript OOD
Following are the attributes of a generic object in an OOD context as it applies to JavaScript:
  • Each object is defined by a class. The JS Native class set will act as the defining source for object instances.
  • An object is instantiated when derived from a class. To instantiate is to invoke the constructor method for the class type with the new operator.
  • A class object is an instance of that class type.
  • The dot operator (access operator) provides access to members of the class.
  • Inheritance in JS is prototype based inheritance. Meaning, the object inherits from the prototype object.
  • Native subclass methods often override like methods of the Object super class; for example, the toString() method.
  • The members of an object are referenced using a reference variable that has a reference data type. These members (properties) are accessed using the object's name with the dot operator followed by the property name.


• Object Class: JavaScript Class
The Object class is one of JavaScript's Native Classes. Using the constructor of the Object class is one (of two) ways to declare an object. Another way of declaring an object is with the object literal. The Object class acts as the super class of all other JS native classes. Therefore, methods and properties of the super class are inherited by all other native classes. See our link for class for the distinction between the terms "class" and "object".

• Object Literal: JavaScript Literal
The declaration of a object can be expressed in the form of a literal. The Object literal consists of property specifications, each separated by commas and all enclosed by a set of curly braces. Each property specification consists of the property name followed by a colon and finally the property value. The above defining syntactical characteristics of an Object literal determine the Object data type in JS weak typing process.

• Object Object: JavaScript Object
While it may sound like double talk, the Object object is an instance of the Native Object class. That is, an object of the Object class is created by using the Object class constructor in a new expression, supplying property specifications as an argument. An Object object can be declared and initialized by either the Object class constructor or by an Object literal statement.

• Object Operand: JavaScript Operator
The object operand is the reference name of an instantiated object.

• Object Oriented Programming: JavaScript Term
Object Oriented programming is a programming paradigm where program design involves these capabilities: encapsulation, inheritance, polymorphism, abstraction and aggregation. The Object Oriented programming style is more prevalent in modern program languages (Java, C++). An older programming paradigm called structured programming is common in the older languages (Cobol, Fortran). Most modern languages support both styles.

• Object Type: JavaScript Data Type
An object type is a member of the type Object. An object is an unordered collection of properties. Each property may contains a primitive value, object or method.

• Operand: JavaScript Operator
An operand is the data on which JS operators perform operations. One or more operands along with the associated operator will represent a complex expression. In most cases, operands remain unchanged after the operation performed by the operator is executed. However, some operators will alter it's operand. These operations are said to produce a side-effect. JS operators can have from one to three operands depending on the given operator. A unary operator has one operand. A binary operator has two operands. A ternary operator has three operands. An operand for a given operator has an operand type that should conform to a certain data type mandated by the operator.

• Operand Type: JavaScript Operator
An operand type pertains to the type of data an operator expects for its operands. Here, type of data does not necessary equate to data type (see below). Depending on the operator, an operand containing data of the incorrect type can result with:
  • an automatic type conversion
  • a data exception (throws an error)
  • unpredictable results
The complete set of operand types is shown here:
  • boolean operand: The operand data value must be either true or false.
  • number operand: The operand data value has a predefined set of numeric values for both positive and negative numbers.
  • string operand: The operand data value will be enclosed in a set of quotes.
  • object operand: The operand data value is an identifier naming an object.
  • array operand: The operand data value is an integer that represents an index of an array.
  • function operand: The operand data value is an identifier representing the name of a function.
  • argument operand: The operand data appears inside the parentheses of the function call.
  • constructor operand: The operand is an identifier representing the name of a class type (JS native class and custom class).
  • lvalue operand: The operand is an identifier representing the left-hand-side operand.
  • identifier operand: The operand is an identifier representing the right-hand-side operand of the dot operator.
  • any operand: The operand can be any operand type.


• Operator: JavaScript Token
Operators are tokens that perform operations. The operations are built-in instructions of the programming language.

• Operator Results: JavaScript Operator
The term operator results applies to JS operators. Specifically, a JS operation will conform to one of the following outcomes:















Top            

Rx4AJAX        About Us | CSS Index | JS Index | HTML Index | Contact Us | Privacy Policy | Built By PPThompson: 2008