top | item 28209630

(no title)

cgag | 4 years ago

I just always use let because it looks better. Const provides pretty much no value in js anyway.

discuss

order

jsf01|4 years ago

It is useful for code readability. When you’re skimming and trying to understand a large chunk of code, if almost all the variables are declared with “const” and then you come across a “let”, you immediately know to look for where it will be mutated elsewhere.