javascript loop over keys and values in object 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)
}