add a new key to an object in a javascript loop 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)
}