Content deleted Content added
revert; a test |
|||
Line 48:
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). That is, an object is an [[associative array]] similar to hashes in the [[Perl programming language]], arrays in [[PHP]], or dictionaries in [[Python programming language|Python]], [[PostScript]] and [[Smalltalk programming language|Smalltalk]].
JavaScript has several kinds of built in
By defining a [[constructor function]] it is possible to define objects. JavaScript is a [[prototype-based programming|prototype based]] object-based language. This means that inheritance is between objects, not between classes (JavaScript has no classes). Objects inherit properties from their prototypes.
|