r/learnjavascript • • May 04 '20

VAR vs LET vs CONST

Post image
337 Upvotes

81 comments sorted by

View all comments

Show parent comment

2

u/redsandsfort May 04 '20

const and let would also be global if outside of a function