const arr = [
[1, 2, 3, 5],
[4, 5, 6, 5],
[7, 8, 9, 5]
];
const rows = arr.length;
const cols = arr[0].length;
for (let i = 0; i < rows; i++) {
for (let j = 0; j < cols; j++) {
console.log(arr[i][j]);
}
console.log();
}
/*
run:
1
2
3
5
4
5
6
5
7
8
9
5
*/