DEV Community

Discussion on: Javascript var, let and const

Collapse
 
chiubaca profile image
Alex Chiu • Edited

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.

see the following - eslint.org/docs/rules/no-const-assign

Thread Thread
 
nagwan profile image
nagwan sami

oh🤩,
i have not tried that before,
it looks handy,
thanks for sharing🙏