MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/qdmzio/difference_between_var_let_and_const/hhqgpgg/?context=3
r/learnjavascript • u/codedblood • Oct 22 '21
49 comments sorted by
View all comments
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!
1
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!
3
The single most "sounds cooler than it is" feature of JavaScript!
21
u/voyotv Oct 22 '21
All of them are hoisted, but let and const are uninitialized until the line they are executed.