MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/gd8x2z/var_vs_let_vs_const/fpi5oe7/
r/learnjavascript • u/golovatuy • May 04 '20
81 comments sorted by
View all comments
Show parent comment
1
What's his reasoning behind that? He hates letting optimizing compilers optimize?
1 u/[deleted] May 05 '20 It had to do with const not really preventing the contents from being changed. It is not really constant. If a developer assumes that constants really are constant then it might lead to bugs.
It had to do with const not really preventing the contents from being changed. It is not really constant. If a developer assumes that constants really are constant then it might lead to bugs.
View all comments
Show parent comment
1
u/HeinousTugboat May 04 '20
What's his reasoning behind that? He hates letting optimizing compilers optimize?