for of an object code example
Example 1: javascript for of
const array = ['hello', 'world', 'of', 'Corona'];
for (const item of array) {
console.log(item);
}
Example 2: es6 for-of loop
for (let itme of list) {
...
}
const array = ['hello', 'world', 'of', 'Corona'];
for (const item of array) {
console.log(item);
}
for (let itme of list) {
...
}