for (var i = 0; i < str.length; i++) { alert(str.charAt(i)); }
let str = 'This is my string'; for(let character of str) console.log(character)