javascript loop is object contains code example
Example 1: for in javascript
for (let i = start; i < end; i++) {
}
Example 2: iterate over array of object javascript and access the properties
for (let item of items) {
console.log(item); // Will display contents of the object inside the array
}