DEV Community

Discussion on: ES6 Cheatsheet 🔥 - All You Need 🚀

Collapse
 
shadowtime2000 profile image
Info Comment hidden by post author - thread only visible in this permalink
shadowtime2000

Your description of let and const lacks some detail. Let isn't just "the new var". It has differences. For one part, var is globally scoped as when you do var this = "that" it is kind of linked to globalThis, while let is only available within the scope it was created in.

Some comments have been hidden by the post's author - find out more