JavaScript: Difference between revisions

Content deleted Content added
Repairing links to disambiguation pages - You can help!
Line 112:
; object based: JavaScript is almost entirely [[object-based]]. JavaScript [[Object (computer science)|objects]] are [[associative array]]s, augmented with prototypes (see below). Object property names are string keys: <code>obj.x&nbsp;=&nbsp;10</code> and <code>obj['x']&nbsp;=&nbsp;10</code> are equivalent, the dot notation being [[syntactic sugar]]. Properties and their values can be added, changed, or deleted at run-time. Most properties of an object (and those on its prototype inheritance chain) can be enumerated using a <code>for...in</code> loop. JavaScript has a small number of built-in objects such as <code>Function</code> and <code>Date</code>.
; run-time evaluation: JavaScript includes an <code>[[eval]]</code> function that can execute statements provided as strings at run-time.
<sup>Superscript text</sup><br /><sup>Superscript text</sup><br />[[Link title]]
 
===Functional===