<code>for</code> in your code and declare a <code>var</code> inside them,
you can still access the variable outside of those blocks:</p>
<pre class="language-javascript line-numbers"><code class="javascript language-javascript">console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>name<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// undefined</span>

<span class="token keywo