MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/onix79/javascript_function_facts/h5spzf4/?context=3
r/learnjavascript • u/hsnice • Jul 19 '21
27 comments sorted by
View all comments
Show parent comments
4
Reassign, yes, but not redeclare.
let assignment = 3; assignment = true; let declaring = function() {} let declaring = false; // here will be a redeclaration error
-5 u/[deleted] Jul 19 '21 We’ll that’s not really redeclaration is it? You’re assigning 2 variables with the same name? 6 u/[deleted] Jul 19 '21 [removed] — view removed comment 5 u/[deleted] Jul 19 '21 I’ll be honest I thought reassigning was redeclaration.
-5
We’ll that’s not really redeclaration is it? You’re assigning 2 variables with the same name?
6 u/[deleted] Jul 19 '21 [removed] — view removed comment 5 u/[deleted] Jul 19 '21 I’ll be honest I thought reassigning was redeclaration.
6
[removed] — view removed comment
5 u/[deleted] Jul 19 '21 I’ll be honest I thought reassigning was redeclaration.
5
I’ll be honest I thought reassigning was redeclaration.
4
u/[deleted] Jul 19 '21
Reassign, yes, but not redeclare.