Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript for...of with Strings

// string
const string = 'code';

// using for...of loop
for (let i of string) {
    console.log(i);
}
 
PREVIOUS NEXT
Tagged: #javascript #Strings
ADD COMMENT
Topic
Name
3+2 =