Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

loop through key value pairs js

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