Answers for "iterating 3x3x3 array"

1

iterating 3x3x3 array

const my3x3x3Array = [
	[
    	[1, 2, 3, 4, 5, 6, 7, 8, 9, 0]
    ]
]
for(let i = 0; i <= my3x3x3Array.length; i++) {
	for(let j = 0; j <= my3x3x3Array[i].length; j++){
    	for(let k = 0; k <= my3x3x3Array[i][j].length; k++) {
        	console.table(my3x3x3Array[i][j])
        }
    }
}
Posted by: Guest on February-17-2021

Code answers related to "iterating 3x3x3 array"

Code answers related to "Javascript"

Browse Popular Code Answers by Language