Answers for "add a new key to an object in a javascript loop"

1

loop key in object

const fruits = { apple: 28, orange: 17 }

for(key in fruits){
	console.log(key)
}
Posted by: Guest on June-29-2020

Code answers related to "add a new key to an object in a javascript loop"

Code answers related to "Javascript"

Browse Popular Code Answers by Language