📜  javascript for 对象循环数组 - Javascript 代码示例

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

代码示例6
var array = ["e", 5, "cool", 100];

for (let i = 0; i < array.length; i++) {
    console.log(array[i]);
}

// This is a common method used to loop through elements in arrays.
// You can use this to change elements, read them, and edit them