I agree it's weird learning curve for newbies. I also enforce this convention with ESLint no-const-assign . This means that whenever I try to reassign a const, my linter will remind me to convert it to a let.
no-const-assign
const
let
see the following - eslint.org/docs/rules/no-const-assign
oh🤩, i have not tried that before, it looks handy, thanks for sharing🙏
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.
I agree it's weird learning curve for newbies. I also enforce this convention with ESLint
no-const-assign
. This means that whenever I try to reassign aconst
, my linter will remind me to convert it to alet
.see the following - eslint.org/docs/rules/no-const-assign
oh🤩,
i have not tried that before,
it looks handy,
thanks for sharing🙏