📜  循环对象javascript代码示例中的键

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

代码示例6
const fruits = { apple: 28, orange: 17 }

for(key in fruits){
    console.log(key)
}