If you have an array of objects with their properties e.g
let students = [{name:"John", gender:"male", yob:1991},{name:"Mary", gender:"female", yob:1994} ]
You can iterate over the properties in 2 ways
Using the for of loop in Javascript
for(let student of students){ //access the properties here student.name student.gender student.yob }
Using the for each loop in Javascript
students.forEach(function(value, index, arr){ //access properties here value.name value.gender value.yob });