📜  for in 循环 - Javascript 代码示例

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

代码示例6
//basic for in loop
const car = {
  carName: "Ford",
  carDoor: 4,
  carSpeed: 180
}

for (objKey in car) {
  console.log(car[objKey])
}
//output 
Ford
4
180