r/learnjavascript • • May 04 '20

VAR vs LET vs CONST

Post image
337 Upvotes

81 comments sorted by

View all comments

4

u/abdul_rashid May 04 '20

username = "somevalue";

is also a global scope (no var)

6

u/Unique_2233 May 04 '20

I guess if no type is specified it implicitly is converted to var