Advertisement
juliarnasution

string iterable

Dec 3rd, 2019
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for (let char of "test") {
  2.     // triggers 4 times: once for each character
  3.     console.log( char ); // t, then e, then s, then t
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement