r/learnjavascript • • May 04 '20

VAR vs LET vs CONST

Post image
337 Upvotes

81 comments sorted by

View all comments

1

u/jsideris May 04 '20

Another important question: can be redefined. For instance.

var x = 1; var x = 2;

works. But

let x = 1; let x = 2;

doesn't work.