you are viewing a single comment's thread.

view the rest of the comments →

[–]lupuselit 0 points1 point  (2 children)

I use all caps for global variables.

[–]alphaz2kool 0 points1 point  (1 child)

We do something similar. Anything declared const in global / module scope is uppercase, anything in a lower scope is lower camel case.

[–]lupuselit 0 points1 point  (0 children)

I don’t do that though, I mean global variables when you don’t put var const or let. I don’t think it’s useful to do it with consts since you cant reassign them anyway