JavaScript arrays is an interesting topic. Arrays can be declared in different ways. If we don't know the number of elements that will be entered to the array, then the size of the array cannot be declared during the declaration of the array. In such situations, array can be declared as given below.
var empty_multi_dim_array = [[]];
In such declaration, size of the array will not be declared initially. Instead an empty square bracket inside another square bracket will be declared as shown above.
CLICK HERE TO SEE JAVASCRIPT 2D ARRAY OPERATION
var empty_multi_dim_array = [[]];
In such declaration, size of the array will not be declared initially. Instead an empty square bracket inside another square bracket will be declared as shown above.
CLICK HERE TO SEE JAVASCRIPT 2D ARRAY OPERATION
0 comments: