<html>
<body>
<h1>JavaScript 语句</h1>
<h2>let 语句</h2>
<p>在循环中使用 <b>let</b>:</p>
<p id="demo"></p>
<script>
let text = "";
for (let i = 0; i < 5; i++) {
text += i + "<br>";
}
document.getElementById("demo").innerHTML = text;
</script>
</body>
</html>