for (let el of string) code example
Example 1: javascript for of
const numbers = [1,2,3,4];
for(const item of numbers){
console.log(item);
}
Example 2: es6 for-of loop
for (let itme of list) {
...
}
const numbers = [1,2,3,4];
for(const item of numbers){
console.log(item);
}
for (let itme of list) {
...
}