<!DOCTYPE html>
<html>
<body>
<h2>JavaScript イテラブル</h2>
<p>配列を反復処理します。</p>
<p id=""demo""></p>
<script>
// 配列の作成
const letters = [""a"",""b"",""c""];
// すべての要素をリストする
let text = """";
for (const x of letters) {
text += x + ""<br>"";
}
document.getElementById(""demo"").innerHTML = text;
</script>
</body>
</html>