DEV Community 👩‍💻👨‍💻

Discussion on: JavaScript. Memory. Architecture and Lifecycle.

ogranada profile image
Andres Granada

Great article, I would only add an extra thing about the hoisting, many people think that let and const declarations wont be hoisted, but you are right, there are hoisted. The reason to get the ReferenceError is because the initialization of those variables has not happened yet and those are referencing to the temporal dead zone (, throwing the error.

thanks for this great article 👍.

vudodov profile image
Valerii Udodov Author

Good call! Thanks!