5 ms·
Why do you think this? "const" seems clearer to me. "con" seems very open to misinterpretation: could mean many things. Are there any advantages to "con" over
by lucideer 5y ago
Why do you think this?
"const" seems clearer to me. "con" seems very open to misinterpretation: could mean many things.
Are there any advantages to "con" over "const"?
- mstade 5y agoMy guess is the OP dislikes the difference in keyword length.
- cgag 5y agoI just always use let because it looks better. Const provides pretty much no value in js anyway.
- jsf01 5y agoIt 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.