loading...

re: Demystifying "const" variables in JavaScript VIEW POST

FULL DISCUSSION
 

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.

code of conduct - report abuse