📜  在 javascript 代码示例中循环数组

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

代码示例6
/* ES6 */
const cities = ["Chicago", "New York", "Los Angeles"];
cities.map(city => {
    console.log(city)
})