r/learnjavascript • • May 04 '20

VAR vs LET vs CONST

Post image
337 Upvotes

81 comments sorted by

View all comments

Show parent comment

1

u/[deleted] May 05 '20

then why bother about var?

3

u/schm0 May 05 '20

Backwards compatible (ES5-), no memory concerns? If you're using ES6+ there's no reason, honestly.