ehavior of <code>let</code> in <code>for</code> loops.</p>
<p>As we saw before, <code>let</code> declarations are scoped to the block they belong to.
In <code>for</code> loops, any variable declared in the <code>for</code> syntax belongs to the loop's block.</p>
<p>Let's look at some code to see what this looks like.
If you use <code>var</code>, this happens:</p>
<pre class="language-javascript line-numbers"><code class="javascript language-javascript"><span class="token keyword">for</span> <span class="tok