mozilla

Compare Revisions

Array

Change Revisions

Revision 484227:

Revision 484227 by tess_joseph on

Revision 485709:

Revision 485709 by peter.kehl on

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

Revision 484227
Revision 485709
n32        If the only argument passed to the <code>Array</code> conn32        If the only argument passed to the <code>Array</code> con
>structor is an integer between 0 and 2<sup>32</sup>-1 (inclusive)>structor is an integer between 0 and 2<sup>32</sup>-1 (inclusive)
>, a new, empty JavaScript array and its length is set to that num>, this returns a new JavaScript array with length set to that num
>ber. If the argument is any other number, a <code><a href="/en-US>ber and&nbsp; containing that many items, each item being <code>u
>/docs/JavaScript/Reference/Global_Objects/RangeError" title="Java>ndefined</code>. If the argument is any other number, a <code><a 
>Script/Reference/Global_Objects/RangeError">RangeError</a></code>>href="/en-US/docs/JavaScript/Reference/Global_Objects/RangeError"
> exception is thrown.> title="JavaScript/Reference/Global_Objects/RangeError">RangeErro
 >r</a></code> exception is thrown.
nn474    </ul>
475    <p>
474    </ul><!-- languages({476      <!-- languages({
tt479    </p>

Back to History