ss="token function">log</span><span class="token punctuation">(</span>i<span class="token punctuation">)</span> <span class="token comment">// ReferenceError: i is not defined</span>
<span aria-hidden="true" class="line-numbers-rows"><a href="#C9_L1" id=C9_L1></a><a href="#C9_L2" id=C9_L2></a><a href="#C9_L3" id=C9_L3></a><a href="#C9_L4" id=C9_L4></a><a href="#C9_L5" id=C9_L5></a></span></code></pre>
<p>Using <code>let</code> will avoid accidentally leaking and changing the <code>i</code> variable from out