from.array vs for in loop code example
Example: how to use for of in javascript
const array1 = ['a', 'b', 'c'];
for (const element of array1) {
console.log(element);
}
const array1 = ['a', 'b', 'c'];
for (const element of array1) {
console.log(element);
}