I was trying to do a code Where i need use a bidimensional array and when i get it the index it say the variable isn't asigned
let vertices = [
[1, 10],
[2, 20],
[3, 30],
[1, 10],
];
for (let i = 0; i < vertices.length; i++) {
console.log(vertices[i][1]);
console.log(vertices[i + 1][0]);
}