Advertisement
juliarnasution

array iterable

Dec 3rd, 2019
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let arr = ['a', 'b', 'c'];
  2. // Use for (... of ...) loop to get the values of an iterable
  3. for (let alphabet of arr) {
  4.     console.log(alphabet);
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement