📜  对于每个 - Javascript 代码示例

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

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

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

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