<html>
<body>
<h1>JavaScript Statements</h1>
<h2>The for...of Loop</h2>
<p>Iterate (loop) over the characters of a string:</p>
<p id="demo"></p>
<script>
let text1 = "JavaScript";
let text2 = "";
for (let x of text1) {
text2 += x + " ";
}
document.getElementById("demo").innerHTML = text1 + "<br>" + text2;
</script>
</body>
</html>