mozilla

Compare Revisions

Array

Change Revisions

Revision 27743:

Revision 27743 by Waldo on

Revision 27744:

Revision 27744 by jsled on

Title:
Array
Array
Slug:
JavaScript/Reference/Global_Objects/Array
JavaScript/Reference/Global_Objects/Array
Tags:
JavaScript, NeedsEditorialReview, "JavaScript Reference"
JavaScript, NeedsEditorialReview, "JavaScript Reference"
Content:

Revision 27743
Revision 27744
nn7    <p>
8      &nbsp;
9    </p>
n17var arr1 = new Array(<i>arrayLength</i>);n20var arr1 = new Array(<em>arrayLength</em>);
18var arr2 = new Array(<i>element0</i>, <i>element1</i>, ..., <i>el21var arr2 = new Array(<em>element0</em>, <em>element1</em>, ..., <
>ementN</i>);>em>elementN</em>);
n24var lit = [<i>element0</i>, <i>element1</i>, ..., <i>elementN</i>n27var lit = [<em>element0</em>, <em>element1</em>, ..., <em>element
>];>N</em>];
n39        <code>element<i>N</i></code>&nbsp;n42        <code>element<em>N</em></code>&nbsp;
n49      An array is an ordered set of values associated with a singn52      An array is an ordered set of values associated with a sing
>le variable name. Note that you <a class="external" href="http://>le variable name. Note that you <a class="external" href="http://
>www.andrewdupont.net/2006/05/18/javascript-associative-arrays-con>www.andrewdupont.net/2006/05/18/javascript-associative-arrays-con
>sidered-harmful/">shouldn't use it as an associative array</a>, u>sidered-harmful/">shouldn't use it as an associative array</a>, u
>se <a href="en/Core_JavaScript_1.5_Reference/Global_Objects/Objec>se <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Obje
>t">Object</a> instead.>ct" title="en/Core_JavaScript_1.5_Reference/Global_Objects/Object
 >">Object</a> instead.
nn209      &nbsp;
210    </p>
211    <p>
n212            <a href="en/Core_JavaScript_1.5_Reference/Global_Objen218            <a href="/en/Core_JavaScript_1.5_Reference/Global_Obj
>cts/Array/prototype">prototype</a>>ects/Array/prototype" title="en/Core_JavaScript_1.5_Reference/Glo
 >bal_Objects/Array/prototype">prototype</a>
nn232    <p>
233      &nbsp;
234    </p>
n308        <a href="en/Core_JavaScript_1.5_Guide/Predefined_Core_Objn317        <a href="/en/Core_JavaScript_1.5_Guide/Predefined_Core_Ob
>ects/Array_Object">Core JavaScript 1.5 Guide:Predefined Core Obje>jects/Array_Object" title="en/Core_JavaScript_1.5_Guide/Predefine
>cts:Array Object</a>>d_Core_Objects/Array_Object">Core JavaScript 1.5 Guide:Predefined
 > Core Objects:Array Object</a>
309      </li>
310      <li>318      </li>
311        <a href="en/New_in_JavaScript_1.7#Array_comprehensions">N
>ew in JavaScript 1.7: Array comprehensions</a> 
312      </li>319      <li>
320        <a href="/en/New_in_JavaScript_1.7#Array_comprehensions" 
 >title="en/New_in_JavaScript_1.7#Array_comprehensions">New in Java
 >Script 1.7: Array comprehensions</a>
313      <li>321      </li>
322      <li>
314        <a href="en/New_in_JavaScript_1.6#Array_extras">New in Ja323        <a href="/en/New_in_JavaScript_1.6#Array_extras" title="e
>vaScript 1.6: Array extras</a>>n/New_in_JavaScript_1.6#Array_extras">New in JavaScript 1.6: Arra
 >y extras</a>
tt326    <p>
317    <div class="noinclude"></div>{{ languages( { "es": "es/Refere327      {{ languages( { "es": "es/Referencia_de_JavaScript_1.5/Obje
>ncia_de_JavaScript_1.5/Objetos_globales/Array", "fr": "fr/R\u00e9>tos_globales/Array", "fr": "fr/R\u00e9f\u00e9rence_de_JavaScript_
>f\u00e9rence_de_JavaScript_1.5_Core/Objets_globaux/Array", "ja": >1.5_Core/Objets_globaux/Array", "ja": "ja/Core_JavaScript_1.5_Ref
>"ja/Core_JavaScript_1.5_Reference/Global_Objects/Array", "pl": "p>erence/Global_Objects/Array", "pl": "pl/Dokumentacja_j\u0119zyka_
>l/Dokumentacja_j\u0119zyka_JavaScript_1.5/Obiekty/Array" } ) }}>JavaScript_1.5/Obiekty/Array" } ) }}
328    </p>

Back to History