JavaScript Iterables
In this tutorial, you will learn about JavaScript iterables is as follows : Iterable objects are objects that can be iterated over with for..of.
Technically, iterables must implement the Symbol.iterator method.
Iterating Over a String
The for...of statement used to creates a loop iterating over the built-in String.
Exampe1
Output
Iterating Over a String
The for...of statement used to creates a loop iterating over iterable Array:
Example2
Output