Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Iterating over a String

const iterable = 'boo';

for (const value of iterable) {
  console.log(value);
}
// "b"
// "o"
// "o"
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #Iterating #String
ADD COMMENT
Topic
Name
1+2 =