Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nesting for loops

let arr = [
  [1,2], [3,4], [5,6]
];
for (let i=0; i < arr.length; i++) {
  for (let j=0; j < arr[i].length; j++) {
    console.log(arr[i][j]);
  }
}
 
PREVIOUS NEXT
Tagged: #nesting #loops
ADD COMMENT
Topic
Name
5+7 =