📜  数组中的值 javascript 代码示例

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

代码示例1
const array1 = ['a', 'b', 'c'];

array1.forEach(element => console.log(element));

// expected output: "a"
// expected output: "b"
// expected output: "c"