JavaScript For Of

JavaScript For Of


JavaScript For Of
 
The for...of statement used to creates a loop iterating over iterable objects and over the built-in String, Array, array-like objects (e.g., arguments or NodeList), TypedArray, Map, Set and user-defined iterables etc..
 
The Syntax of for Of Loop is as follows:
for (element of iterable) {
// body of for… of 
}
Example1
Output
Exampe2
Output