📜  foreach 数组 javascript 代码示例

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

代码示例4
const names = ['Anthony','Stacey','Mason','Gracie','Koda','Nani'];

forEach(function(name) {
    console.log(name);
});