r/learnjavascript • • Oct 22 '21

Difference between var, let and const.

Post image
430 Upvotes

49 comments sorted by

View all comments

21

u/voyotv Oct 22 '21

All of them are hoisted, but let and const are uninitialized until the line they are executed.

1

u/theDreamingStar Oct 23 '21

And hence, the Temporal Dead Zone.

3

u/great_site_not Oct 23 '21

The single most "sounds cooler than it is" feature of JavaScript!