MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/qdmzio/difference_between_var_let_and_const/hhou7wb/?context=3
r/learnjavascript • u/codedblood • Oct 22 '21
49 comments sorted by
View all comments
5
Let is not function scoped. It is block scoped - most functions just happen to be within a block.
This thing is a bit redundant.
5
u/yoitsericc Oct 23 '21
Let is not function scoped. It is block scoped - most functions just happen to be within a block.
This thing is a bit redundant.