&gt; Unlike var, let and const statements are not hoisted to the top of their enclosing scope.<p>No, let <i>is</i> hoisted to the top of the enclosing scope [1] (&quot;temporal dead zone&quot; notwithstanding). let, however, is not hoisted to the top of the enclosing <i>function</i>.<p>[1]: <a href="https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;JavaScript&#x2F;Reference&#x2F;Statements&#x2F;let" rel="nofollow">https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;JavaScript&#x2F;Refe...</a>