Am I the only one who thinks const should be the only thing used?
I am genuinely interested in your thoughts here
I would like to note that const doesn't provide imutability, it only protects against reassignment
Ofcourse, const isn't enough, but it's a starting point
I'd argue you shouldn't add props to an object after you create it
I'd argue you should never have any value change (not in the foo = bar sense of change)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Am I the only one who thinks const should be the only thing used?
I am genuinely interested in your thoughts here
I would like to note that const doesn't provide imutability, it only protects against reassignment
Ofcourse, const isn't enough, but it's a starting point
I'd argue you shouldn't add props to an object after you create it
I'd argue you should never have any value change (not in the foo = bar sense of change)