loop through a string javascript code example
Example 1: javascript loop through string
for (var i = 0; i < str.length; i++) {
console.log(str.charAt(i));
}
Example 2: java loop through string
String s = "...stuff...";
for (int i = 0; i < s.length(); i++){
char c = s.charAt(i);
//Process char
}