ooping over the characters of string in js code example
Example: javascript loop through string
for (var i = 0; i < str.length; i++) {
console.log(str.charAt(i));
}
for (var i = 0; i < str.length; i++) {
console.log(str.charAt(i));
}