Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

loop key in object

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

for(key in fruits){
	console.log(key)
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #loop #key #object
ADD COMMENT
Topic
Name
3+2 =