Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

for key value in object javascript

for (const [key, value] of Object.entries(object1)) {
  console.log(`${key}: ${value}`);
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #key #object #javascript
ADD COMMENT
Topic
Name
1+5 =