Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript loop through array of objects

//Only to be used if you need the numbers
var array = new Array(item1,item2,item3)

for(i=0;i<array.length;i++){
  if(i==2){
    console.log(array[i])
  }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #loop #array #objects
ADD COMMENT
Topic
Name
8+9 =