1var table = document.getElementById("myTable");
2for (let i in table.rows) {
3 let row = table.rows[i]
4 //iterate through rows
5 //rows would be accessed using the "row" variable assigned in the for loop
6 for (let j in row.cells) {
7 let col = row.cells[j]
8 //iterate through columns
9 //columns would be accessed using the "col" variable assigned in the for loop
10 }
11}