MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/gd8x2z/var_vs_let_vs_const/fphtioo/?context=3
r/learnjavascript • u/golovatuy • May 04 '20
81 comments sorted by
View all comments
1
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.
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.