DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+6 =
Submit