Nested loop

Run Settings
LanguageJavaScript
Language Version
Run Command
const studentRow = [ ['Olivia', 'Liam', 'Emma', 'Noah'], ['Amelia', 'Oliver', 'Ava', 'Elijah'], ['Sophia', 'Mateo', 'Isabella', 'Lucas'], ]; for (let i = 0; i < studentRow.length; i++) { const row = studentRow[i]; console.log(`Seat Row #${i + 1}`); for (let j = 0; j < row.length; j++) { console.log(` ${row[j]}`); } } // https://dashboard.codepolitan.com/learn/courses/kelas-javascript/lessons/7799
Editor Settings
Theme
Key bindings
Full width
Lines