When to capitalize your JavaScript constants

I found this article after noticing that a few people in the chat were confused about the capitalization of constants. It’s a nice addition to the other article about var, let and const.


Hi @garymeade667209

I like the convention where you capitalized all the letters if that value it is constant before your program run, and camelCase if you got that constant value from user, browser or others programs:

const div = document.getElementById(#example-div);

Thank you for sharing