Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

object.entries

// Iterate over key/value pairs of an object
for (const [key, value] of Object.entries(object1)) {
  console.log(`${key}: ${value}`);
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
3+9 =