 <code>let</code> are both block-level declarations, and they are <em>not</em> hoisted.</p>
<p>Because of this they are not accessible outside of the given block scope (meaning in a <code>function</code> or in <code>{}</code>) they are declared in.
You can also not access them before they are declared, or you will get a <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError"><code>ReferenceError</code></a>.</p>
<pre class="language-javascript line-numbers"><