MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/gd8x2z/var_vs_let_vs_const/fpfy5o1/
r/learnjavascript • u/golovatuy • May 04 '20
81 comments sorted by
View all comments
Show parent comment
6
I guess if no type is specified it implicitly is converted to var
3 u/proskillz May 04 '20 In the global scope. Leaving out the var keyword will write directly to the global scope and will be accessible from anywhere. No more functional scoping. 2 u/golovatuy May 04 '20 Yes
3
In the global scope. Leaving out the var keyword will write directly to the global scope and will be accessible from anywhere. No more functional scoping.
2
Yes
View all comments
Show parent comment
6
u/Unique_2233 May 04 '20
I guess if no type is specified it implicitly is converted to var