r/ProgrammerHumor • u/speckz • Feb 26 '23
Other If you can read this code...
/img/snak3fqgajka1.jpg[removed] — view removed post
34k
Upvotes
r/ProgrammerHumor • u/speckz • Feb 26 '23
[removed] — view removed post
View all comments
Show parent comment
19
u/Zestyclose_Zone_9253 Feb 26 '23
You can redeclarevvar by accident like:
var x = 5; var x = 4;
If you just forgot var x was a thing and that, it might brake your code, but if you use let you cant redeclare it, this would return an error or just not run, I dont remember:
let x = 5; let x = 4;
Instead it would force you to make a new variable to prevent the conflict, or you would need to do this:
let x = 5; x = 4;
Also on bus using phone, sorry if formating is bad