how to for loop on every char of string in ts code example
Example: js for each character in string
for (var i = 0; i < str.length; i++) {
alert(str.charAt(i));
}
for (var i = 0; i < str.length; i++) {
alert(str.charAt(i));
}