r/learnjavascript • • May 04 '20

VAR vs LET vs CONST

Post image
337 Upvotes

81 comments sorted by

View all comments

Show parent comments

32

u/redsandsfort May 04 '20

agree. this chart is bad info

-2

u/[deleted] May 04 '20

You guys should make a new more comprehensive chart then. For real, it would be much appreciated!

0

u/[deleted] May 04 '20

[deleted]

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.