object iteration in js code example
Example 1: object for loop
const object = {a: 1, b: 2, c: 3};
for (const property in object) {
console.log(`${property}: ${object[property]}`);
}
Example 2: for in javascript
for (let i = start; i < end; i++) {
}