Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Iterating over a multidimensional array

var cubes = [["string", "string"], ["string", "string"]];

for(var i = 0; i < cubes.length; i++) {
    for(var j = 0; j < cubes[i].length; j++) {
        console.log(cubes[i][j]);
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Iterating #multidimensional #array
ADD COMMENT
Topic
Name
6+4 =