MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/btxz72/what_are_some_javascript_things_beginners_dont/ep50hmj/?context=9999
r/javascript • u/[deleted] • May 28 '19
383 comments sorted by
View all comments
141
Using const and let
0 u/[deleted] May 28 '19 [deleted] 33 u/[deleted] May 28 '19 VSCode masterrace but WebStorm is right here. (Modern) JS shouldn't use var when not explicitly needed. 8 u/g0liadkin May 28 '19 I'm curious, would you say there is a situation when it's actually needed to use var? 10 u/Careerier May 28 '19 When you can't use a compiler like Babel and you have to support older browsers that don't know what `let` and `const` mean.
0
[deleted]
33 u/[deleted] May 28 '19 VSCode masterrace but WebStorm is right here. (Modern) JS shouldn't use var when not explicitly needed. 8 u/g0liadkin May 28 '19 I'm curious, would you say there is a situation when it's actually needed to use var? 10 u/Careerier May 28 '19 When you can't use a compiler like Babel and you have to support older browsers that don't know what `let` and `const` mean.
33
VSCode masterrace but WebStorm is right here. (Modern) JS shouldn't use var when not explicitly needed.
8 u/g0liadkin May 28 '19 I'm curious, would you say there is a situation when it's actually needed to use var? 10 u/Careerier May 28 '19 When you can't use a compiler like Babel and you have to support older browsers that don't know what `let` and `const` mean.
8
I'm curious, would you say there is a situation when it's actually needed to use var?
var
10 u/Careerier May 28 '19 When you can't use a compiler like Babel and you have to support older browsers that don't know what `let` and `const` mean.
10
When you can't use a compiler like Babel and you have to support older browsers that don't know what `let` and `const` mean.
141
u/inabahare May 28 '19
Using const and let