Answers for "looping through array in object in array"

53

javascript loop through object array

var person={
 	first_name:"johnny",
  	last_name: "johnson",
	phone:"703-3424-1111"
};
for (var property in person) {
  	console.log(property,":",person[property]);
}
Posted by: Guest on July-22-2019
0

How to loop through an array containing objects and access their properties

yourArray.forEach(function (arrayItem) {
    var x = arrayItem.prop1 + 2;
    console.log(x);
});
Posted by: Guest on June-29-2021

Code answers related to "looping through array in object in array"

Code answers related to "Javascript"

Browse Popular Code Answers by Language