set key value in object javascript using for loop i 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)
}