Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to loop trough an object java script

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

const keys = Object.keys(fruits)
console.log(keys) // [apple, orange, pear]
Source by zellwk.com #
 
PREVIOUS NEXT
Tagged: #loop #trough #object #java #script
ADD COMMENT
Topic
Name
8+8 =