0
respostas

Matrix numérica 3 x 3

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));
});