Declaring and Allocating Arrays
var c = new Array( 12 );
The preceding statement can also be performed in two steps, as follows:
var c; // declares the array
c = new Array( 12 ); // allocates the array
When arrays are allocated, the elements are not initialized—they have the value undefined.
Copyright © 2018-2020 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.