update key value in object with loop js code example
Example: loop key in object
const fruits = { apple: 28, orange: 17 }
for(key in fruits){
console.log(key)
}
const fruits = { apple: 28, orange: 17 }
for(key in fruits){
console.log(key)
}