复制1const person = { 2 name: "Lydia", 3 age: 21 4} 5 6for (const [x, y] of Object.entries(person)) { 7 console.log(x, y) 8}
1const person = { 2 name: "Lydia", 3 age: 21 4} 5 6for (const [x, y] of Object.entries(person)) { 7 console.log(x, y) 8}
本题为“单选题”
题库维护不易,您的支持就是我们最大的动力!