iterating over an object for of code example
Example 1: javascript loop through object
for (var property in object) {
if (object.hasOwnProperty(property)) {
// Do things here
}
}
Example 2: for in javascript
for (let i = start; i < end; i++) {
}