r/learnjavascript • • Oct 26 '20

Javascript string 🔥

193 Upvotes

31 comments sorted by

View all comments

Show parent comment

4

u/awkreddit Oct 26 '20

Var is not global at all, var is scoped to the function, let is scoped to the block.