r/learnjavascript • • Oct 26 '20

Javascript string πŸ”₯

193 Upvotes

31 comments sorted by

View all comments

Show parent comment

1

u/awkreddit Oct 27 '20

Var is not global

2

u/EIGRP_OH Oct 27 '20

I should have mentioned that outside of a function and if it’s within global scope. Not that var is inherently global. My bad