Сообщение от djekokma
|
добраться до значений ключей "age" и "rating"?
|
const data = {
"Grace": {"age": 5,"rating": 2000},
"Lily": {"age": 10,"rating": 1000},
"Oscar": {"age": 15,"rating": 900}
}
for (let {age, rating} of Object.values(data)) {
console.log(age, rating)
}