📜  嵌套数组 javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:18.828000             🧑  作者: Mango

代码示例1
//Sorry for any grammer or syntax mistakes ahead of time ;)

//Make a nested array
let pets = [["cat", "Purasama"], ["dog", "Woofus"]];
//Refer to a nested array
console.log(pets[0]); //Returns "["cat", "Purasama"]"
console.log(pets[1][1]); //Returns "Woofus"