Java Script Syntax - Objects

For convenience, types are normally subdivided into primitives and objects. Objects are entities that have an identity (they are only equal to themselves) and that map property names to values ("slots" in prototype-based programming terminology). Objects may be thought of as associative arrays or hashes, and are often implemented using these data structures. However, objects have additional features, such as a prototype chain, which ordinary associative arrays do not have.

JavaScript has several kinds of built-in objects, namely Array, Boolean, Date, Function, Math, Number, Object, RegExp and String. Other objects are "host objects", defined not by the language but by the runtime environment. For example, in a browser, typical host objects belong to the DOM (window, form, links, etc.).

Read more about this topic:  Java Script Syntax

Famous quotes containing the word objects:

    “The objects of a financier are, then, to secure an ample revenue; to impose it with judgment and equality; to employ it economically; and, when necessity obliges him to make use of credit, to secure its foundations in that instance, and for ever, by the clearness and candour of his proceedings, the exactness of his calculations, and the solidity of his funds.”
    —Edmund Burke (1729–1797)

    “If the Christ were content with humble toilers for disciples, that wasn’t good enough for our Bert. He wanted dukes’ half sisters and belted earls wiping his feet with their hair; grand apotheosis of the snob, to humiliate the objects of his own awe by making them venerate him.”
    —Angela Carter (1940–1992)

    “It is a misfortune that necessity has induced men to accord greater license to this formidable engine, in order to obtain liberty, than can be borne with less important objects in view; for the press, like fire, is an excellent servant, but a terrible master.”
    —James Fenimore Cooper (1789–1851)