📜  迭代数组 javascript 代码示例

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

代码示例6
let array = [1,2,3]; 
for(let element of array){ //iterates over each element, in some cases is necesary to use another type of for
    console.log(element);
}