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

Solutions on MaxInterview for how to loop through an array containing objects and access their properties by the best coders in the world

showing results for - "how to loop through an array containing objects and access their properties"
Lucia
28 Jan 2019
1yourArray.forEach(function (arrayItem) {
2    var x = arrayItem.prop1 + 2;
3    console.log(x);
4});
5
similar questions