MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/JavaScriptTips/comments/11r1nkj/what_am_i_doing_wrong/jc7k2ia/?context=3
r/JavaScriptTips • u/Affectionate_Tree790 • Mar 14 '23
7 comments sorted by
View all comments
2
Don’t include the declaration keyword (var let) when you change a variable only on first declaration. So Var i = 0; i = 1;
Not Var i = 0; Var i = 1;
2
u/Ironclad_57 Mar 14 '23
Don’t include the declaration keyword (var let) when you change a variable only on first declaration. So Var i = 0; i = 1;
Not Var i = 0; Var i = 1;