const is a good practice, but you even continue using let with immutable code. Sometimes itโs easier and more readable to use let for an immutable object, to which you are going to apply transforms.
Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!
const is a good practice, but you even continue using let with immutable code. Sometimes itโs easier and more readable to use let for an immutable object, to which you are going to apply transforms.
sure.
i just try my best to make everything immutable and handle mutable state separately, like in a redux store.