DEV Community

Discussion on: Demystifying "const" variables in JavaScript

ceceliacreates profile image
Cecelia Martinez

Great article! My boot camp instructor also advocates a "const first" approach, for all the reasons you outlined here. I'd rather get a "reassignment to a constant variable" error, which is easily identified and fixed, then trying to figure out why my code is broken due to an inadvertent reassignment.