Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript for...of loop to iterate over the multidimensional array

let studentsData = [['Jack', 24], ['Sara', 23],];

for (let i of studentsData) {
  for (let j of i) {
    console.log(j);
  }
}
 
PREVIOUS NEXT
Tagged: #javascript #loop #iterate #multidimensional #array
ADD COMMENT
Topic
Name
1+9 =