<!DOCTYPE html>
<html>
<body>
<h2>JavaScript Sets</h2>
<p>Setの値の反復</p>
<p id="demo"></p>
<script>
// Setを作成します
const letters = new Set(["a","b","c"]);
// すべての要素をリストする
let text = "";
for (const x of letters.values()) {
text += x + "<br>";
}
document.getElementById("demo").innerHTML = text;
</script>
</body>
</html>