const echo = console.log;
const matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]];
echo(matrix.length);
echo(matrix[0].length);
echo('--------------------------------------');
matrix.forEach(row => {
row.forEach(item => echo(item));
});
const echo = console.log;
const matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]];
echo(matrix.length);
echo(matrix[0].length);
echo('--------------------------------------');
matrix.forEach(row => {
row.forEach(item => echo(item));
});