Reassignments are wrong, they are a code smell, and they aren't good to write, avoid them whenever you can. If both const and let variables can be mutated/changed, does it really matter which one we pick?

2m read timeFrom tigerabrodi.hashnode.dev
Post cover image
Table of contents
Truth about constWhy const?Problem with reassignmentConclusion
4 Comments

Sort: