Use const always, unless you must use let. That's it.
You don't need to read other articles on this subject, it's that simple.
You don't need to read other articles on this subject, it's that simple.
It means that a top-level script using `var` that is subsequently refactored into a scoped function somewhere will now have different semantics and might break if other code depended on `var` creating a new global property.