For of Loop in JavaScript
For Of Loop
The for-of loop can be used to iterate our iterable objects or in other words arrays.
During iteration, it assigns the value to the corresponding element in the iterating list.
the for-of loop can work with strings also.
Syntax:-
for(let value of array){
// code to be executed
document.write(value);
}