MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/gd8x2z/var_vs_let_vs_const/fpjtem5/?context=3
r/learnjavascript • u/golovatuy • May 04 '20
81 comments sorted by
View all comments
81
const and let can be used in the global scope just as much as var can.
1 u/schm0 May 05 '20 I think they are confusing variable hoisting with global scope? 1 u/senocular May 05 '20 const and let also hoist.
1
I think they are confusing variable hoisting with global scope?
1 u/senocular May 05 '20 const and let also hoist.
const and let also hoist.
81
u/senocular May 04 '20
const and let can be used in the global scope just as much as var can.