@aral If you want to learn more about it, it happens because `const` doesn't apply hoisting in the way you are expecting it to:
https://developer.mozilla.org/en-US/docs/Glossary/Hoisting
Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
Ekaitz Zárraga 👹 (ekaitz_zarraga@mastodon.social)'s status on Thursday, 31-Aug-2023 18:33:52 JSTEkaitz Zárraga 👹