Itreating String JS
for (var i = 0; i < str.length; i++) {
alert(str.charAt(i));
}
Hungry Heron
for (var i = 0; i < str.length; i++) {
alert(str.charAt(i));
}
var value = "alma";
var new_value = [...value].map((x) => x+"E").join("")
// There are multiple ways but I find this easiest.
let str = 'This is my string';
for(let character of str)
console.log(character)
Run code snippet
for (var i = 0; i < str.length; i++) {
alert(str[i]);
}