let str = "level";for (let c of str) { console.log(c);}//Перебор с индексомfor (let i = 0; i < str.length; i++) { console.log(`str[${i}] = ${str[i]};`);}